function get_tripal_feature_admin_form_title_set
1.x tripal_feature.admin.inc | get_tripal_feature_admin_form_title_set(&$form) |
Parameters
$form:
1 call to get_tripal_feature_admin_form_title_set()
- tripal_feature_admin in tripal_feature/
includes/ tripal_feature.admin.inc
File
- tripal_feature/
includes/ tripal_feature.admin.inc, line 310 - @todo Add file header description
Code
function get_tripal_feature_admin_form_title_set(&$form) {
$form['title'] = array(
'#type' => 'fieldset',
'#title' => t('Feature Page Titles'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['title']['desc'] = array(
'#type' => 'markup',
'#value' => t('Each synced feature must have a unique page title, however, features
may have the same name if they are of different types or from
different organisms. Therefore, we must be sure that the
page titles can uniquely identify the feature being viewed. Select
an option below that will uniquely identify all features on your site.'),
);
$options = array(
'feature_unique_name' => 'Feature unique name',
'feature_name' => 'Feature name',
'unique_constraint' => 'Feature Name, uniquename, type and species',
);
$form['title']['chado_feature_title'] = array(
'#title' => t('Feature Page Titles'),
'#type' => 'radios',
'#description' => t('Choose a title type from the list above that is
guaranteed to be unique for all features. If in doubt it is safest to
choose the last option as that guarantees uniqueness. Click the
\'Save Configuration\' button at the bottom to save your selection.'),
'#required' => FALSE,
'#options' => $options,
'#default_value' => variable_get('chado_feature_title', 'unique_constraint'),
);
}