function ctools_context_node_settings_form_submit in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 plugins/contexts/node.inc \ctools_context_node_settings_form_submit()
File
- plugins/
contexts/ node.inc, line 144 - Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.
Code
function ctools_context_node_settings_form_submit($form, &$form_state) {
if ($form_state['values']['set_identifier']) {
$node = node_load($form_state['values']['nid']);
$form_state['values']['identifier'] = $node->title;
}
// This will either be the value set previously or a value set by the
// validator.
$form_state['conf']['nid'] = $form_state['values']['nid'];
}