Projet

Général

Profil

Paste
Télécharger (1,85 ko) Statistiques
| Branche: | Révision:

root / htmltest / sites / all / modules / module_filter / module_filter.admin.inc @ dc45a079

1
<?php
2

    
3
/**
4
 * @file
5
 *
6
 * @author greenSkin
7
 */
8

    
9
/*******************************************************************************
10
 * Callback Functions, Forms, and Tables
11
 ******************************************************************************/
12

    
13
/**
14
 * Settings form for module filter.
15
 */
16
function module_filter_settings() {
17
  $form['module_filter_tabs'] = array(
18
    '#type' => 'checkbox',
19
    '#title' => t('Tabs'),
20
    '#description' => t('Divide module groups into tabbed list.'),
21
    '#default_value' => variable_get('module_filter_tabs', 1)
22
  );
23
  $form['tabs'] = array(
24
    '#type' => 'fieldset',
25
    '#title' => t('Tabs'),
26
    '#description' => t('Settings used with the tabs view of the modules page.'),
27
    '#collapsible' => TRUE,
28
    '#collapsed' => FALSE
29
  );
30
  $form['tabs']['module_filter_count_enabled'] = array(
31
    '#type' => 'checkbox',
32
    '#title' => t('Number of enabled modules'),
33
    '#description' => t('Display the number of enabled modules in the active tab along with the total number of modules.'),
34
    '#default_value' => variable_get('module_filter_count_enabled', 1)
35
  );
36
  $form['tabs']['module_filter_visual_aid'] = array(
37
    '#type' => 'checkbox',
38
    '#title' => t('Visuals for newly enabled and disabled modules'),
39
    '#description' => t("Adds a basic count to tabs of modules being enabled/disabled and colors the module row pending it's being enabled or disabled"),
40
    '#default_value' => variable_get('module_filter_visual_aid', 1)
41
  );
42
  $form['tabs']['module_filter_dynamic_save_position'] = array(
43
    '#type' => 'checkbox',
44
    '#title' => t('Dynamically position save button'),
45
    '#description' => t("DEVELOPMENTAL: For sites with lots of tabs, enable to help keep the 'Save configuration' button more accessible."),
46
    '#default_value' => variable_get('module_filter_dynamic_save_position', 0)
47
  );
48
  return system_settings_form($form);
49
}