You are here

function globalredirect_settings_submit_reset in Global Redirect 6

Same name and namespace in other branches
  1. 7 globalredirect.admin.inc \globalredirect_settings_submit_reset()

Reset submit handler for the globalredirect_settings form. This simply deletes any overridden settings which forces the system to fallback to defaults

1 string reference to 'globalredirect_settings_submit_reset'
globalredirect_settings in ./globalredirect.admin.inc
Function to generate the form setting array

File

./globalredirect.admin.inc, line 160
This is the GlobalRedirect admin include which provides an interface to global redirect to change some of the default settings

Code

function globalredirect_settings_submit_reset($form_id, &$form_state) {
  variable_del('globalredirect_settings');
  drupal_set_message(t('Globalredirect settings have been reset to default.'));
}