function get_tripal_stock_admin_form_title_set

1.x tripal_stock.admin.inc get_tripal_stock_admin_form_title_set(&$form)

Parameters

$form:

1 call to get_tripal_stock_admin_form_title_set()
tripal_stock_admin in tripal_stock/includes/tripal_stock.admin.inc
Purpose: Provide administration options for chado_stocks

File

tripal_stock/includes/tripal_stock.admin.inc, line 68
@todo Add file header description

Code

function get_tripal_stock_admin_form_title_set(&$form) {

  $form['title'] = array(
    '#type' => 'fieldset',
    '#title' => t('Stock Page Titles'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['title']['desc'] = array(
    '#type' => 'markup',
    '#value' => t('Each synced stock must have a unique page title, however, stocks
      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 stock being viewed.  Select an option below that will 
      uniquely identify all stocks on your site.'),
  );
  $options = array(
    'stock_unique_name' => 'Only stock unique name',
    'stock_name' => 'Only stock name',
    'unique_constraint' => 'Includes stock name, uniquename, type and species',
  );
  $form['title']['chado_stock_title'] = array(
    '#title' => t('Stock Page Titles'),
    '#type' => 'radios',
    '#description' => t('Choose a title type  from the list above that is 
      guaranteed to be unique for all stocks 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_stock_title', 'unique_constraint'),
  );
}