You are here

function responsive_preview_device_add_form_submit in Responsive Theme Preview 7

Form submit handler for responsive_preview_device_add_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_add_form()

responsive_preview_device_add_form_validate()

File

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

Code

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