function ctools_context_term_settings_form_submit in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/contexts/term.inc \ctools_context_term_settings_form_submit()
1 string reference to 'ctools_context_term_settings_form_submit'
File
- plugins/
contexts/ term.inc, line 148 - Plugin to provide a term context
Code
function ctools_context_term_settings_form_submit($form, &$form_values, &$form_state) {
if ($form_values['set_identifier']) {
$term = db_fetch_object(db_query("SELECT t.tid, t.name FROM {term_data} t WHERE LOWER(t.tid) = %d", $form_values['tid']));
$form_state['values']['context']['identifier'] = $term->name;
}
// Don't let this be stored.
unset($form_values['set_identifier']);
}