function radioactivity_admin_general_form_submit in Radioactivity 7
Same name and namespace in other branches
- 7.2 radioactivity-admin-ui.inc \radioactivity_admin_general_form_submit()
File
- ./
radioactivity-admin-ui.inc, line 68
Code
function radioactivity_admin_general_form_submit($form_id, $form_state) {
$old = variable_get('radioactivity_ajax_callback_path', RADIOACTIVITY_AJAX_PATH);
$new = $form_state['input']['radioactivity_ajax_callback_path'];
variable_set('radioactivity_ajax_callback_path', $new);
if ($old != $new) {
menu_rebuild();
drupal_set_message("Menu rebuilt to reflect changes");
}
variable_set('radioactivity_flood_protection', isset($form_state['input']['radioactivity_flood_protection']) ? true : false);
variable_set('radioactivity_flood_timeout', $form_state['input']['radioactivity_flood_timeout']);
}