You are here

function _hosting_site_collapse_views_fieldset in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 site/includes/views/hosting_site.views.inc \_hosting_site_collapse_views_fieldset()

Callback to collapse VBO fieldset.

@see: hosting_site_form_alter().

1 string reference to '_hosting_site_collapse_views_fieldset'
hosting_site_form_alter in site/hosting_site.form.inc
Implements hook_form_alter().

File

site/includes/views/hosting_site.views.inc, line 341
Hosting site views integration.

Code

function _hosting_site_collapse_views_fieldset($form, &$form_state) {

  // Ensure required js libs are added
  drupal_add_js('misc/form.js');
  drupal_add_js('misc/collapse.js');
  $form['select']['#attributes']['class'][] = ' collapsible collapsed';
  return $form;
}