|
@@ -233,12 +233,25 @@ function tripal_feature_admin () {
|
|
|
);
|
|
|
// $allowedoptions ['allow_feature_browser'] = "Allow loading of the feature browsing through AJAX. For large sites the initial page load will be quick with the feature browser loading afterwards.";
|
|
|
|
|
|
- $form['browser']['browse_features'] = array(
|
|
|
- '#title' => 'Feature Browser on Organism Page',
|
|
|
- '#description' => 'A feature browser can be added to an organism page to allow users to quickly '.
|
|
|
+ $form['browser']['browser_desc'] = array(
|
|
|
+ '#type' => 'markup',
|
|
|
+ '#value' => 'A feature browser can be added to an organism page to allow users to quickly '.
|
|
|
'access a feature. This will most likely not be the ideal mechanism for accessing feature '.
|
|
|
'information, especially for large sites, but it will alow users exploring the site (such '.
|
|
|
'as students) to better understand the data types available on the site.',
|
|
|
+
|
|
|
+ );
|
|
|
+ $form['browser']['feature_types'] = array(
|
|
|
+ '#title' => t('Feature Types'),
|
|
|
+ '#type' => 'textarea',
|
|
|
+ '#description' => t("Enter the Sequence Ontology (SO) terms for the feature types that ".
|
|
|
+ "will be shown in the feature browser."),
|
|
|
+ '#default_value' => variable_get('chado_browser_feature_types','gene contig'),
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+ $form['browser']['browse_features'] = array(
|
|
|
+ '#title' => 'Feature Browser on Organism Page',
|
|
|
'#type' => 'radios',
|
|
|
'#options' => $allowedoptions1,
|
|
|
'#default_value'=>variable_get('tripal_feature_browse_setting', 'show_feature_browser'),
|
|
@@ -298,6 +311,8 @@ function tripal_feature_admin_validate($form, &$form_state) {
|
|
|
global $user; // we need access to the user info
|
|
|
$job_args = array();
|
|
|
|
|
|
+ variable_set('chado_browser_feature_types',$form_state['values']['feature_types']);
|
|
|
+
|
|
|
// if the user wants to sync up the chado features then
|
|
|
// add the job to the management queue
|
|
|
switch ($form_state['values']['op']){
|