function ctools_context_term_settings_form_submit

File

plugins/contexts/term.inc, line 139

Code

function ctools_context_term_settings_form_submit($form, &$form_state) {
    if ($form_state['values']['set_identifier']) {
        $term = db_query('SELECT tid, name FROM {taxonomy_term_data} WHERE LOWER(tid) = :tid', array(
            ':tid' => $form_state['values']['tid'],
        ))->fetchObject();
        $form_state['values']['identifier'] = $term->name;
    }
    $form_state['conf']['tid'] = $form_state['values']['tid'];
    $form_state['conf']['vid'] = $form_state['values']['vid'];
}