Explorar el Código

Removed the listing of all images for the sync admin interface.

Chun-Huai Cheng hace 11 años
padre
commit
87e6c5f4bf

+ 15 - 17
tripal_eimage/includes/tripal_eimage.admin.inc

@@ -103,23 +103,21 @@ function get_tripal_eimage_admin_form_sync_set(&$form) {
     */
     // if we have eimages we need to add to the checkbox then
     // build that form element
-    if ($added > 0) {
-      $eimage_boxes['all'] = "All Eimages";
-
-      $form['sync']['eimages'] = array(
-        '#title'       => t('Available Eimages'),
-        '#type'        => t('checkboxes'),
-        '#description' => t("Check the eimages you want to sync.  Drupal content will be created for each of the eimages listed above.  Select 'All Eimages' to sync all of them."),
-        '#required'    => FALSE,
-        '#prefix'      => '<div id="org_boxes">',
-        '#suffix'      => '</div>',
-        '#options'     => $eimage_boxes,
-      );
-      $form['sync']['button'] = array(
-        '#type' => 'submit',
-        '#value' => t('Submit Sync Job')
-      );
-    }
+    $eimage_boxes['all'] = "All Eimages";
+
+    $form['sync']['eimages'] = array(
+      '#title'       => t('Available Eimages'),
+      '#type'        => t('checkboxes'),
+      '#description' => t("Check the eimages you want to sync.  Drupal content will be created for each of the eimages listed above.  Select 'All Eimages' to sync all of them."),
+      '#required'    => FALSE,
+      '#prefix'      => '<div id="org_boxes">',
+      '#suffix'      => '</div>',
+      '#options'     => $eimage_boxes,
+    );
+    $form['sync']['button'] = array(
+      '#type' => 'submit',
+      '#value' => t('Submit Sync Job')
+    );
     // we don't have any eimages to select from
     else {
     $form['sync']['value'] = array(

+ 1 - 1
tripal_project/includes/tripal_project.admin.inc

@@ -250,7 +250,7 @@ function tripal_project_sync_projects($project_id = NULL, $job_id = NULL) {
       $new_node->uid = $user->uid;
       $new_node->title = "$project->name";
       $new_node->project_id = $project->project_id;
-      $new_node->name = $project->name;
+      //$new_node->name = $project->name;
       $new_node->description = $project->description;
       node_validate($new_node);
       if (!form_get_errors()) {