function chado_add_admin_form_set_title_form_submit

2.x tripal_core.chado_nodes.title_and_path.api.inc chado_add_admin_form_set_title_form_submit($form, $form_state)
3.x tripal_core.chado_nodes.title_and_path.inc chado_add_admin_form_set_title_form_submit($form, $form_state)

Implements hook_form_submit(). SUBMIT: Actually add the format specified by chado_add_admin_form_set_title()

1 string reference to 'chado_add_admin_form_set_title_form_submit'
chado_add_admin_form_set_title in tripal_core/api/tripal_core.chado_nodes.title_and_path.api.inc
Generic "Set Node Title" sub-form for setting the title of any chado node

File

tripal_core/api/tripal_core.chado_nodes.title_and_path.api.inc, line 378
Contains API functions to set titles and paths for all chado nodes

Code

function chado_add_admin_form_set_title_form_submit($form, $form_state) {

  if ($form_state['values']['title_option'] == 'custom') {
    $format = $form_state['values']['custom_title'];
  }
  else {
    $format = $form_state['values']['title_option'];
  }

  chado_node_add_token_format('title', $form_state['values']['content_type'], $format, $form_state['values']['tokens']);
}