You are here

function fieldset_helper_install in Fieldset helper 6.2

Same name and namespace in other branches
  1. 6 fieldset_helper.install \fieldset_helper_install()
  2. 7.2 fieldset_helper.install \fieldset_helper_install()

Implementation of hook_install().

File

./fieldset_helper.install, line 11
Installation information for the 'Fieldset helper' module.

Code

function fieldset_helper_install() {

  // Define variables
  variable_set('fieldset_helper_node_form_state', 1);
  variable_set('fieldset_helper_default_collapsible_pages', '*');
  variable_set('fieldset_helper_default_collapsed_pages', 'admin/build/modules');
  variable_set('fieldset_helper_toggle_all_pages', 'admin/build/modules
admin/build/modules/list');
  variable_set('fieldset_helper_toggle_all_minimum', 2);
  variable_set('fieldset_helper_global_pages', '');
  variable_set('fieldset_helper_global_ids', '');
  variable_set('fieldset_helper_cookie_duration', 0);
  variable_set('fieldset_helper_disable_state_anonymous', 0);

  // Set the weight to 1000. This module needs to be called after all other modules
  // have executed their hook_form_alter() functions.
  db_query("UPDATE {system} SET weight = 1000 WHERE name = 'fieldset_helper'");
  drupal_install_schema('fieldset_helper');
}