Browse Source

Fixed tripal jobs admin view.

Lacey Sanderson 9 years ago
parent
commit
1642adec01

+ 3 - 5
tripal/includes/tripal.jobs.inc

@@ -36,11 +36,9 @@ function tripal_jobs_admin_view() {
   else {
     $output .= '<p>The Tripal Jobs management system uses primarily views to provide an '
       . 'administrative interface. Currently one or more views needed for this '
-      . 'administrative interface are disabled. <strong>Click each of the following links to '
-      . 'enable the pertinent views</strong>:</p>';
-    $output .= '<ul>';
-      $output .= '<li>'.l('Jobs View', 'admin/tripal/tripal_jobs/views/jobs/enable').'</li>';
-    $output .= '</ul>';
+      . 'administrative interface are disabled. <strong>Go to '
+      . l('Administration > Structure > Views', 'admin/structure/views')
+      . ' and enable the view titled "Tripal Jobs (Admin)"';
   }
 
   return $output;

+ 1 - 8
tripal/tripal.module

@@ -37,17 +37,10 @@ require_once "includes/TripalBundleUIController.inc";
 
 /**
  * Implements hook_views_api().
- *
- * Essentially this hook tells drupal that there is views support for
- *  for this module which then includes tripal_db.views.inc where all the
- *  views integration code is
- *
- * @ingroup tripal_feature
  */
 function tripal_views_api() {
   return array(
-    'api' => 3.0,
-    'path' => drupal_get_path('module', 'tripal') . '/includes',
+    'api' => 3,
   );
 }
 

+ 1 - 1
tripal/tripal.views.inc

@@ -280,4 +280,4 @@ function tripal_views_data_jobs($data) {
   );
 
   return $data;
-}
+}

+ 3 - 2
tripal/tripal.views_default.inc

@@ -14,9 +14,10 @@ function tripal_views_default_views() {
 
   $view = tripal_admin_defaultview_jobs();
   $views[$view->name] = $view;
-
+    
   return $views;
-}
+}  
+
 
 /**
  * Describes the jobs administration view.