function views_form_views_form

cis7 views.module views_form_views_form($form, &$form_state, $view, $output)
cle7 views.module views_form_views_form($form, &$form_state, $view, $output)
elmsmedia7 views.module views_form_views_form($form, &$form_state, $view, $output)
icor7 views.module views_form_views_form($form, &$form_state, $view, $output)
meedjum_blog7 views.module views_form_views_form($form, &$form_state, $view, $output)
mooc7 views.module views_form_views_form($form, &$form_state, $view, $output)

Callback for the main step of a Views form. Invoked by views_form().

5 string references to 'views_form_views_form'
hook_views_bulk_operations_form_alter in sites/all/modules/ulmus/views_bulk_operations/views_bulk_operations.api.php
Perform alterations on the VBO form before it is rendered.
views_bulk_operations_form_alter in sites/all/modules/ulmus/views_bulk_operations/views_bulk_operations.module
Implements hook_form_alter().
views_bulk_operations_form_submit in sites/all/modules/ulmus/views_bulk_operations/views_bulk_operations.module
Submit handler for all steps of the VBO multistep form.
views_form in sites/all/modules/ulmus/views/views.module
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…
views_theme in sites/all/modules/ulmus/views/views.module
Implement hook_theme(). Register views theming functions.


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


function views_form_views_form($form, &$form_state, $view, $output) {
  $form['#prefix'] = '<div class="views-form">';
  $form['#suffix'] = '</div>';
  $form['#theme'] = 'views_form_views_form';
  $form['#validate'][] = 'views_form_views_form_validate';
  $form['#submit'][] = 'views_form_views_form_submit';

  // Add the output markup to the form array so that it's included when the form
  // array is passed to the theme function.
  $form['output'] = array(
    '#type' => 'markup',
    '#markup' => $output,
    // This way any additional form elements will go before the view
    // (below the exposed widgets).
    '#weight' => 50,

  $substitutions = array();
  foreach ($view->field as $field_name => $field) {
    $form_element_name = $field_name;
    if (method_exists($field, 'form_element_name')) {
      $form_element_name = $field->form_element_name();
    $method_form_element_row_id_exists = FALSE;
    if (method_exists($field, 'form_element_row_id')) {
      $method_form_element_row_id_exists = TRUE;

    // If the field provides a views form, allow it to modify the $form array.
    $has_form = FALSE;
    if (property_exists($field, 'views_form_callback')) {
      $callback = $field->views_form_callback;
      $callback($view, $field, $form, $form_state);
      $has_form = TRUE;
    elseif (method_exists($field, 'views_form')) {
      $field->views_form($form, $form_state);
      $has_form = TRUE;

    // Build the substitutions array for use in the theme function.
    if ($has_form) {
      foreach ($view->result as $row_id => $row) {
        if ($method_form_element_row_id_exists) {
          $form_element_row_id = $field->form_element_row_id($row_id);
        else {
          $form_element_row_id = $row_id;

        $substitutions[] = array(
          'placeholder' => '<!--form-item-' . $form_element_name . '--' . $form_element_row_id . '-->',
          'field_name' => $form_element_name,
          'row_id' => $form_element_row_id,

  // Give the area handlers a chance to extend the form.
  $area_handlers = array_merge(array_values($view->header), array_values($view->footer));
  $empty = empty($view->result);
  foreach ($area_handlers as $area) {
    if (method_exists($area, 'views_form') && !$area->views_form_empty($empty)) {
      $area->views_form($form, $form_state);

  $form['#substitutions'] = array(
    '#type' => 'value',
    '#value' => $substitutions,
  $form['actions'] = array(
    '#type' => 'container',
    '#attributes' => array('class' => array('form-actions')),
    '#weight' => 100,
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),

  return $form;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.