You are here

function responsive_preview_device_add_form in Responsive Theme Preview 7

Form callback: builds the form for adding a device.

Parameters

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

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

Return value

An array representing the form definition.

See also

responsive_preview_device_add_form_validate()

responsive_preview_device_add_form_submit()

1 string reference to 'responsive_preview_device_add_form'
responsive_preview_menu in ./responsive_preview.module
Implements hook_menu().

File

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

Code

function responsive_preview_device_add_form($form, &$form_state) {
  $form += responsive_preview_device_configuration_form();
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add device'),
  );
  return $form;
}