function ctools_context_node_settings_form_submit

File

plugins/contexts/node.inc, line 144

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'];
}