module_filter.admin.inc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * @file
  4. *
  5. * @author greenSkin
  6. */
  7. /*******************************************************************************
  8. * Callback Functions, Forms, and Tables
  9. ******************************************************************************/
  10. /**
  11. * Settings form for module filter.
  12. */
  13. function module_filter_settings() {
  14. $form['module_filter_tabs'] = array(
  15. '#type' => 'checkbox',
  16. '#title' => t('Tabs'),
  17. '#description' => t('Divide module groups into tabbed list.'),
  18. '#default_value' => variable_get('module_filter_tabs', 1)
  19. );
  20. $form['tabs'] = array(
  21. '#type' => 'fieldset',
  22. '#title' => t('Tabs'),
  23. '#description' => t('Settings used with the tabs view of the modules page.'),
  24. '#collapsible' => TRUE,
  25. '#collapsed' => FALSE
  26. );
  27. $form['tabs']['module_filter_count_enabled'] = array(
  28. '#type' => 'checkbox',
  29. '#title' => t('Number of enabled modules'),
  30. '#description' => t('Display the number of enabled modules in the active tab along with the total number of modules.'),
  31. '#default_value' => variable_get('module_filter_count_enabled', 1)
  32. );
  33. $form['tabs']['module_filter_visual_aid'] = array(
  34. '#type' => 'checkbox',
  35. '#title' => t('Visuals for newly enabled and disabled modules'),
  36. '#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"),
  37. '#default_value' => variable_get('module_filter_visual_aid', 1)
  38. );
  39. $form['tabs']['module_filter_dynamic_save_position'] = array(
  40. '#type' => 'checkbox',
  41. '#title' => t('Dynamically position save button'),
  42. '#description' => t("DEVELOPMENTAL: For sites with lots of tabs, enable to help keep the 'Save configuration' button more accessible."),
  43. '#default_value' => variable_get('module_filter_dynamic_save_position', 0)
  44. );
  45. return system_settings_form($form);
  46. }