function tripal_admin_data_collection_form_submit

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

Sumbit function for the tripal_admin_data_collection_form form.

File

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

Code

function tripal_admin_data_collection_form_submit($form, &$form_state) {
  $enabled = $form_state['values']['enabled'];
  $lifespan = $form_state['values']['lifespan'];
  variable_set('tripal_data_collections_enabled', $enabled);
  variable_set('tripal_data_collections_lifespan', $lifespan);
  menu_cache_clear_all();
  drupal_set_message('Settings saved.');
}