function ctools_block_content_type_edit_form_submit in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 plugins/content_types/block/block.inc \ctools_block_content_type_edit_form_submit()
Submit function to fix the subtype for really old panel panes.
File
- plugins/
content_types/ block/ block.inc, line 203 - Provide Drupal blocks as content.
Code
function ctools_block_content_type_edit_form_submit($form, &$form_state) {
if (empty($form_state['subtype']) && isset($form_state['pane'])) {
$form_state['pane']->subtype = $form_state['conf']['module'] . '-' . $form_state['conf']['delta'];
unset($form_state['conf']['module']);
unset($form_state['conf']['delta']);
}
}