function popup_maker_update_popup in Popup Maker - All popup types 7
1 call to popup_maker_update_popup()
File
- ./
popup_maker.admin.inc, line 55
Code
function popup_maker_update_popup() {
if (!drupal_valid_token($_POST['_csrf_token'], 'popup_maker')) {
drupal_set_message('Could not validate the security token', 'error');
return false;
}
$id = $_POST['id'];
$config = variable_get('popup_maker_settings', array(
'api_key' => null,
'popups' => array(),
'popupSettings' => array(),
'user' => array(),
));
$config['popupSettings'][$id]['displayOptions'] = $_POST['sgpm_rules'];
variable_set('popup_maker_settings', $config);
drupal_goto('admin/config/content/popup_maker', array(
'query' => array(
'popupId' => $id,
),
));
}