function ctools_content_configure_form_defaults_submit in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/content.inc \ctools_content_configure_form_defaults_submit()
Submit handler to store context/title override info.
1 string reference to 'ctools_content_configure_form_defaults_submit'
- ctools_content_configure_form_defaults in includes/
content.inc - Add the default FAPI elements to the content type configuration form
File
- includes/
content.inc, line 547 - Contains the tools to handle pluggable content that can be used by other applications such as Panels or Dashboard.
Code
function ctools_content_configure_form_defaults_submit(&$form, &$form_state) {
if (isset($form_state['values']['context'])) {
$form_state['conf']['context'] = $form_state['values']['context'];
}
if (isset($form_state['values']['override_title'])) {
$form_state['conf']['override_title'] = $form_state['values']['override_title'];
$form_state['conf']['override_title_text'] = $form_state['values']['override_title_text'];
}
}