Browse Source

Rearranged shortcut links, find content tabs, etc.

Lacey Sanderson 9 years ago
parent
commit
3b74051bcb

+ 5 - 1
tripal_entities/includes/TripalBundleUIController.inc

@@ -18,14 +18,17 @@ class TripalBundleUIController extends EntityDefaultUIController {
    */
   public function hook_menu() {
     $items = parent::hook_menu();
+    
+    // Alter the Admin > Structure > Tripal Content Types menu item.
     $items[$this->path]['description'] = 'Manage biological content types that are
       added using Tripal.';
 
     // We don't want to let the user import new Tripal data types.
     unset($items[$this->path . '/import']);
 
+    // Add an action link to Admin > Structure > Tripal Content Types for adding types.
     $items[$this->path . '/add'] = array(
-      'title' => 'Add new tripal content type',
+      'title' => 'Add Tripal Content Type',
       'description' => 'Add new biological content',
       'page callback' => 'drupal_get_form',
       'page arguments' => array('tripal_entities_admin_add_type_form'),
@@ -35,6 +38,7 @@ class TripalBundleUIController extends EntityDefaultUIController {
       'type' => MENU_LOCAL_ACTION,
       'weight' => 2
     );
+    
     return $items;
   }
 

+ 1 - 0
tripal_entities/includes/TripalEntityUIController.inc

@@ -24,6 +24,7 @@ class TripalEntityUIController extends EntityDefaultUIController {
       'file path' => drupal_get_path('module', 'tripal_entities'),
       'access arguments' => array('administer tripal data'),
       'type' => MENU_LOCAL_TASK,
+      'weight' => -9
     );
 
     $items['bio-data/add'] = array(

+ 11 - 11
tripal_entities/tripal_entities.module

@@ -93,24 +93,24 @@ function tripal_entities_shortcut_default_set($account) {
     $shortcut_set = new stdClass();
     $shortcut_set->title = $t('TripalDefault');
     $shortcut_set->links = array(
-      array(
-        'link_path' => 'bio-data/add',
-        'link_title' => 'Add Tripal Content',
-        'weight' => -23,
-      ),
-      array(
-        'link_path' => 'admin/content/bio-data',
-        'link_title' => 'Find Tripal Content',
-        'weight' => -22,
-      ),
       array(
         'link_path' => 'node/add',
         'link_title' => $t('Add content'),
-        'weight' => -21,
+        'weight' => -35,
+      ),
+      array(
+        'link_path' => 'bio-data/add',
+        'link_title' => 'Add Tripal Content',
+        'weight' => -30,
       ),
       array(
         'link_path' => 'admin/content',
         'link_title' => $t('Find content'),
+        'weight' => -25,
+      ),
+      array(
+        'link_path' => 'admin/content/bio-data',
+        'link_title' => 'Find Tripal Content',
         'weight' => -20,
       ),
     );