You are here

function responsive_preview_device_edit_form_submit in Responsive Theme Preview 7

Form submit handler for responsive_preview_device_edit_form().

Parameters

$form: An associative array containing the structure of the form.

$form_state: An associative array containing the current state of the form.

See also

responsive_preview_device_edit_form()

responsive_preview_device_edit_form_validate()

File

./responsive_preview.admin.inc, line 251
Administrative page callbacks for the responsive_preview module.

Code

function responsive_preview_device_edit_form_submit($form, &$form_state) {
  responsive_preview_update_device_definition($form_state['values']['device'], TRUE);
  $form_state['redirect'] = 'admin/config/content/responsive-preview';
}