You are here

function mobile_detect_import_refresh_submit in Mobile Switch 7.2

Submit handler for the refresh Mobile Detect button.

1 string reference to 'mobile_detect_import_refresh_submit'
mobile_detect_import_settings_form in modules/mobile_detect_import/mobile_detect_import.admin.inc
Implements hook_form().

File

modules/mobile_detect_import/mobile_detect_import.admin.inc, line 85
Administrative page callbacks for the Mobile Detect Import module.

Code

function mobile_detect_import_refresh_submit($form, &$form_state) {

  // Update the Mobile Detect class file.
  _mobile_detect_import_import(FALSE);

  // Record when the Mobile Detect class file was updated.
  variable_set('mobile_detect_import_imported', REQUEST_TIME);
}