function views_form

cis7 views.module views_form($form, &$form_state, $view, $output)
cle7 views.module views_form($form, &$form_state, $view, $output)
elmsmedia7 views.module views_form($form, &$form_state, $view, $output)
icor7 views.module views_form($form, &$form_state, $view, $output)
meedjum_blog7 views.module views_form($form, &$form_state, $view, $output)
mooc7 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.

5 string references to 'views_form'
views_bulk_operations_form_alter in sites/all/modules/ulmus/views_bulk_operations/views_bulk_operations.module
Implements hook_form_alter().
views_forms in sites/all/modules/ulmus/views/views.module
Implements hook_forms().
views_form_id in sites/all/modules/ulmus/views/views.module
Returns a form ID for a Views form using the name and display of the View.
views_form_views_form in sites/all/modules/ulmus/views/views.module
Callback for the main step of a Views form. Invoked by views_form().
views_view_has_form_elements in sites/all/modules/ulmus/views/views.module
Returns TRUE if the passed-in view contains handlers with views form implementations, FALSE otherwise.

File

sites/all/modules/ulmus/views/views.module, line 1767
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_form($form, &$form_state, $view, $output) {
  $form_state['step'] = isset($form_state['step']) ? $form_state['step'] : 'views_form_views_form';
  // Cache the built form to prevent it from being rebuilt prior to validation
  // and submission, which could lead to data being processed incorrectly,
  // because the views rows (and thus, the form elements as well) have changed
  // in the meantime.
  $form_state['cache'] = TRUE;

  $form = array();
  $query = drupal_get_query_parameters($_GET, array('q'));
  $form['#action'] = url($view->get_url(), array('query' => $query));
  // Tell the preprocessor whether it should hide the header, footer, pager...
  $form['show_view_elements'] = array(
    '#type' => 'value',
    '#value' => ($form_state['step'] == 'views_form_views_form') ? TRUE : FALSE,
  );

  $form = $form_state['step']($form, $form_state, $view, $output);
  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.