function tripal_pub_admin_validate

2.x tripal_pub.admin.inc tripal_pub_admin_validate($form, &$form_state)
3.x tripal_pub.admin.inc tripal_pub_admin_validate($form, &$form_state)
1.x tripal_pub.admin.inc tripal_pub_admin_validate($form, &$form_state)

Validate the admin settings form

Related topics

File

legacy/tripal_pub/includes/tripal_pub.admin.inc, line 142
Administration of publications

Code

function tripal_pub_admin_validate($form, &$form_state) {
  global $user; // we need access to the user info
  $job_args = array();

  $import_duplicate_check = $form_state['values']['import_duplicate_check'];
  variable_set('tripal_pub_import_duplicate_check', $import_duplicate_check);

  $default_type = $form_state['values']['type_id'];
  variable_set('tripal_pub_default_type', $default_type);

}