function ctools_edit_context_form_defaults_submit in Chaos Tool Suite (ctools) 7
Submit handler to store context identifier and keyword info.
1 string reference to 'ctools_edit_context_form_defaults_submit'
- ctools_edit_context_form_defaults in includes/
context-admin.inc - Form wrapper for the edit context form.
File
- includes/
context-admin.inc, line 756 - includes/common-context.inc Provide API for adding contexts for modules that embed displays.
Code
function ctools_edit_context_form_defaults_submit(&$form, &$form_state) {
if ($form_state['type info']['key'] == 'relationships') {
$form_state['conf']['context'] = $form_state['values']['context'];
}
if ($form_state['type info']['key'] == 'arguments') {
$form_state['conf']['default'] = $form_state['values']['default'];
$form_state['conf']['title'] = $form_state['values']['title'];
}
if ($form_state['type info']['key'] == 'requiredcontexts') {
$form_state['conf']['optional'] = $form_state['values']['optional'];
}
$form_state['conf']['identifier'] = $form_state['values']['identifier'];
$form_state['conf']['keyword'] = $form_state['values']['keyword'];
}