|
@@ -15,9 +15,10 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
require_once 'api/tripal_cv.DEPRECATED.inc';
|
|
require_once 'api/tripal_cv.DEPRECATED.inc';
|
|
-
|
|
|
|
|
|
+require_once 'api/tripal_cv.api.inc';
|
|
require_once 'includes/tripal_cv.admin.inc';
|
|
require_once 'includes/tripal_cv.admin.inc';
|
|
require_once 'includes/tripal_cv.cv_form.inc';
|
|
require_once 'includes/tripal_cv.cv_form.inc';
|
|
|
|
+require_once 'includes/tripal_cv.cv_defaults.inc';
|
|
require_once 'includes/tripal_cv.cvterm_form.inc';
|
|
require_once 'includes/tripal_cv.cvterm_form.inc';
|
|
require_once 'includes/tripal_cv.cvtermpath_form.inc';
|
|
require_once 'includes/tripal_cv.cvtermpath_form.inc';
|
|
|
|
|
|
@@ -40,7 +41,7 @@ function tripal_cv_init() {
|
|
function tripal_cv_menu() {
|
|
function tripal_cv_menu() {
|
|
$items = array();
|
|
$items = array();
|
|
|
|
|
|
- /* $items['admin/tripal/vocab'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab'] = array(
|
|
'title' => 'Controlled Vocabularies',
|
|
'title' => 'Controlled Vocabularies',
|
|
'description' => 'Controlled Vocabularies control the types available for entities and fields.',
|
|
'description' => 'Controlled Vocabularies control the types available for entities and fields.',
|
|
'page callback' => 'tripal_cv_admin_cv_listing',
|
|
'page callback' => 'tripal_cv_admin_cv_listing',
|
|
@@ -50,7 +51,7 @@ function tripal_cv_menu() {
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
- $items['admin/tripal/vocab/help'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/help'] = array(
|
|
'title' => 'Help',
|
|
'title' => 'Help',
|
|
'description' => "A description of the Tripal Controlled Vocabulary module including a short description of it's usage.",
|
|
'description' => "A description of the Tripal Controlled Vocabulary module including a short description of it's usage.",
|
|
'page callback' => 'theme',
|
|
'page callback' => 'theme',
|
|
@@ -60,7 +61,7 @@ function tripal_cv_menu() {
|
|
'weight' => 10
|
|
'weight' => 10
|
|
);
|
|
);
|
|
|
|
|
|
- $items['admin/tripal/vocab/cvtermpath'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cvtermpath'] = array(
|
|
'title' => 'Update Chado cvtermpath table',
|
|
'title' => 'Update Chado cvtermpath table',
|
|
'description' => 'The Chado cvtermpath table provides lineage for terms and is useful for quickly finding any ancestor parent of a term. However, this table must be populated. This page allows for populating of this table one vocabulary at a time',
|
|
'description' => 'The Chado cvtermpath table provides lineage for terms and is useful for quickly finding any ancestor parent of a term. However, this table must be populated. This page allows for populating of this table one vocabulary at a time',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -69,7 +70,7 @@ function tripal_cv_menu() {
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
|
|
|
|
- $items['admin/tripal/vocab/cv/edit/%'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cv/edit/%'] = array(
|
|
'title' => 'Edit a Controlled Vocabulary',
|
|
'title' => 'Edit a Controlled Vocabulary',
|
|
'description' => 'Edit the details such as name and description for an existing controlled vocabulary.',
|
|
'description' => 'Edit the details such as name and description for an existing controlled vocabulary.',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -79,7 +80,7 @@ function tripal_cv_menu() {
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
|
|
|
|
- $items['admin/tripal/vocab/cv/add'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cv/add'] = array(
|
|
'title' => 'Add a Controlled Vocabulary',
|
|
'title' => 'Add a Controlled Vocabulary',
|
|
'description' => 'Manually a new controlled vocabulary.',
|
|
'description' => 'Manually a new controlled vocabulary.',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -89,7 +90,7 @@ function tripal_cv_menu() {
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
|
|
|
|
- $items['admin/tripal/vocab/cv/%/cvterm/add'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cv/%/cvterm/add'] = array(
|
|
'title' => 'Add a Controlled Vocabulary Term',
|
|
'title' => 'Add a Controlled Vocabulary Term',
|
|
'description' => 'Add a new controlled vocabulary term.',
|
|
'description' => 'Add a new controlled vocabulary term.',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -97,7 +98,7 @@ function tripal_cv_menu() {
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
- $items['admin/tripal/vocab/cvterm/add'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cvterm/add'] = array(
|
|
'title' => 'Add a Controlled Vocabulary Term',
|
|
'title' => 'Add a Controlled Vocabulary Term',
|
|
'description' => 'Add a new controlled vocabulary term.',
|
|
'description' => 'Add a new controlled vocabulary term.',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -105,7 +106,7 @@ function tripal_cv_menu() {
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
- $items['admin/tripal/vocab/cv/%/cvterm/edit/%'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cv/%/cvterm/edit/%'] = array(
|
|
'title' => 'Edit a Controlled Vocabulary Term',
|
|
'title' => 'Edit a Controlled Vocabulary Term',
|
|
'description' => 'Edit an existing controlled vocabulary term.',
|
|
'description' => 'Edit an existing controlled vocabulary term.',
|
|
'page callback' => 'drupal_get_form',
|
|
'page callback' => 'drupal_get_form',
|
|
@@ -113,28 +114,37 @@ function tripal_cv_menu() {
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
- $items['admin/tripal/vocab/cvterm/auto_name/%/%'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/cvterm/auto_name/%/%'] = array(
|
|
'page callback' => 'tripal_cv_cvterm_name_autocomplete',
|
|
'page callback' => 'tripal_cv_cvterm_name_autocomplete',
|
|
'page arguments' => array(6, 7),
|
|
'page arguments' => array(6, 7),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
|
|
|
|
- $items['admin/tripal/vocab/views/cvs/enable'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/views/cvs/enable'] = array(
|
|
'title' => 'Enable Vocabulary Administrative View',
|
|
'title' => 'Enable Vocabulary Administrative View',
|
|
'page callback' => 'tripal_enable_view',
|
|
'page callback' => 'tripal_enable_view',
|
|
'page arguments' => array('tripal_cv_admin_cvs', 'admin/tripal/vocab'),
|
|
'page arguments' => array('tripal_cv_admin_cvs', 'admin/tripal/vocab'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
- $items['admin/tripal/vocab/views/cvterms/enable'] = array(
|
|
|
|
|
|
+ $items['admin/tripal/legacy/vocab/views/cvterms/enable'] = array(
|
|
'title' => 'Enable Vocabulary Terms Administrative View',
|
|
'title' => 'Enable Vocabulary Terms Administrative View',
|
|
'page callback' => 'tripal_enable_view',
|
|
'page callback' => 'tripal_enable_view',
|
|
'page arguments' => array('tripal_cv_admin_cvterms', 'admin/tripal/vocab'),
|
|
'page arguments' => array('tripal_cv_admin_cvterms', 'admin/tripal/vocab'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'access arguments' => array('administer controlled vocabularies'),
|
|
'type' => MENU_CALLBACK,
|
|
'type' => MENU_CALLBACK,
|
|
);
|
|
);
|
|
- */
|
|
|
|
|
|
+
|
|
|
|
+ $items['admin/tripal/legacy/chado/tripal_cv/defaults'] = array(
|
|
|
|
+ 'title' => 'Defaults',
|
|
|
|
+ 'description' => 'Set the default vocabularies for properties and relationships.',
|
|
|
|
+ 'page callback' => 'drupal_get_form',
|
|
|
|
+ 'page arguments' => array('tripal_cv_admin_set_defaults_form'),
|
|
|
|
+ 'access arguments' => array('administer controlled vocabularies'),
|
|
|
|
+ 'type' => MENU_LOCAL_TASK,
|
|
|
|
+ 'weight' => 5
|
|
|
|
+ );
|
|
|
|
|
|
$items['tripal_cv_chart'] = array(
|
|
$items['tripal_cv_chart'] = array(
|
|
'path' => 'tripal_cv_chart',
|
|
'path' => 'tripal_cv_chart',
|
|
@@ -274,6 +284,10 @@ function tripal_cv_theme($existing, $type, $theme, $path) {
|
|
'variables' => array(NULL),
|
|
'variables' => array(NULL),
|
|
'path' => "$path/theme/templates"
|
|
'path' => "$path/theme/templates"
|
|
),
|
|
),
|
|
|
|
+ 'tripal_cv_admin_set_defaults_form' => array(
|
|
|
|
+ 'function' => 'theme_tripal_cv_admin_set_defaults_form',
|
|
|
|
+ 'render element' => 'element',
|
|
|
|
+ ),
|
|
);
|
|
);
|
|
|
|
|
|
return $items;
|
|
return $items;
|