function popup_block_form_submit in Popup 8
Same name and namespace in other branches
- 7 modules/popup_block/popup_block.module \popup_block_form_submit()
- 7.x modules/popup_block/popup_block.module \popup_block_form_submit()
- 6.x modules/popup_block/popup_block.module \popup_block_form_submit()
1 string reference to 'popup_block_form_submit'
- popup_block_form_alter in modules/
popup_block/ popup_block.module - Implementation of hook_form_alter Adds UI settings to block configuration
File
- modules/
popup_block/ popup_block.module, line 174
Code
function popup_block_form_submit(&$form, &$form_state) {
$settings = _popup_block_settings();
$values = $form_state['values'];
if (isset($values['popup-block'])) {
$settings[$values['module'] . ':' . $values['delta']] = array(
'active' => $values['popup-block'],
'format' => $values['popup-block-format'],
'title-length' => $values['popup-title-length'],
);
if (isset($settings['active']) && $settings['active'] && $form_state['values']['title'] == '<none>') {
$form_state['values']['title'] = '';
}
_popup_block_settings($settings);
}
}