function tripal_admin_data_collection_form

3.x tripal.admin.inc tripal_admin_data_collection_form($form, &$form_state)

_state

Parameters

unknown $form:

1 string reference to 'tripal_admin_data_collection_form'
tripal_menu in tripal/tripal.module
Implements hook_menu(). Defines all menu items needed by Tripal Core

File

tripal/includes/tripal.admin.inc, line 8

Code

function tripal_admin_data_collection_form($form, &$form_state) {
  $form = array();

  $options = array(0 => t('Disabled'), 1 => t('Enabled'));
  $form['enabled'] = array(
    '#type' => 'radios',
    '#title' => t('Activate Data Collections'),
    '#options' => $options,
    '#description' => t('Data collections allow users to save results of search queries for later download or use by other tools.'),
    '#default_value' => variable_get('tripal_data_collections_enabled', 1),
    '#required' => TRUE,
  );

  $form['lifespan'] = array(
    '#type' => 'textfield',
    '#title' => t('Collection Lifespan'),
    '#description' => t('Enter the number of days that data collections exist.  
       Collections will be automatically removed after the lifespan
       period has passed.  Removal of data collections occurs when the
       sites Drupal cron executes.'),
    '#default_value' => variable_get('tripal_data_collections_lifespan', 30),
    '#required' => TRUE,
  );

  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save changes'),
  );

  return $form;
}