You are here

function views_forms in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 views.module \views_forms()
  2. 7.3 views.module \views_forms()

Implements hook_forms().

To provide distinct form IDs for Views forms, the View name and specific display name are appended to the base ID, views_form_views_form. When such a form is built or submitted, this function will return the proper callback function to use for the given form.

File

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

Code

function views_forms($form_id, $args) {
  if (strpos($form_id, 'views_form_') === 0) {
    return array(
      $form_id => array(
        'callback' => 'views_form',
      ),
    );
  }
}