views_form

6 views.module views_form(&$form_state, $view, $output)
7 views.module views_form($form, &$form_state, $view, $output)

This is the entry function. Just gets the form for the current step. The form is always assumed to be multistep, even if it has only one step (the default 'views_form_views_form' step). That way it is actually possible for modules to have a multistep form if they need to.

4 string references to 'views_form'

File

./views.module, line 1228
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_form(&$form_state, $view, $output) {
  $form_state['storage']['step'] = isset($form_state['storage']['step']) ? $form_state['storage']['step'] : 'views_form_views_form';

  $form = array();
  $form['#validate'] = array('views_form_validate');
  $form['#submit'] = array('views_form_submit');
  // Tell the preprocessor whether it should hide the header, footer, pager...
  $view->show_view_elements = ($form_state['storage']['step'] == 'views_form_views_form') ? TRUE : FALSE;

  $form = $form_state['storage']['step']($form, $form_state, $view, $output);
  return $form;
}
Login or register to post comments