function popups_theme_settings_form_submit in Popups API (Ajax Dialogs) 6
Same name and namespace in other branches
- 5 popups.module \popups_theme_settings_form_submit()
- 6.2 popups.module \popups_theme_settings_form_submit()
popups_form_alter adds this submit handler to the theme pages. Set a per-theme jQuery content selector that gets passed into the js settings.
_state
Parameters
$form:
1 string reference to 'popups_theme_settings_form_submit'
- popups_form_alter in ./
popups.module - Implementation of hook_form_alter().
File
- ./
popups.module, line 292 - This module provides a hook_popups for links to be openned in an Ajax Popup Dialog.
Code
function popups_theme_settings_form_submit($form, &$form_state) {
$theme = $form_state['values']['popups_theme'];
$content_selector = $form_state['values']['popups_content_selector'];
variable_set('popups_' . $theme . '_content_selector', $content_selector);
}