Browse Source

Applied patch provided by guignonv. Issue #2341579

Stephen Ficklin 10 years ago
parent
commit
e98373efb8

+ 5 - 3
tripal_contact/includes/tripal_contact.chado_node.inc

@@ -432,9 +432,11 @@ function chado_contact_insert($node) {
 /**
  * Implements hook_update
  *
- * The purpose of the function is to allow the module to take action when an edited node is being
- * updated. It updates any name changes to the database tables that werec reated upon registering a contact.
- * As well, the database will be changed, so the user changed information will be saved to the database.
+ * The purpose of the function is to allow the module to take action when an
+ * edited node is being updated. It updates any name changes to the database
+ * tables that were created upon registering a contact.
+ * As well, the database will be changed, so the user changed information will
+ * be saved to the database.
  *
  * @param $node
  *   The node being updated

+ 2 - 1
tripal_contact/tripal_contact.module

@@ -83,7 +83,8 @@ function tripal_contact_menu() {
     'title' => ' Sync',
     'description' => 'Sync contacts in Chado with Drupal',
     'page callback' => 'drupal_get_form',
-    'page arguments' => array('tripal_contact_sync_form'),
+    // 'page arguments' => array('tripal_contact_sync_form'),
+    'page arguments' => array('chado_node_sync_form', 'tripal_contact', 'chado_contact'),
     'access arguments' => array('administer tripal contact'),
     'type' => MENU_LOCAL_TASK,
     'weight' => 0