You are here

function modules_weight_configuration_form in Modules weight 7

Form constructor for Module Weight Configuration form.

Parameters

array $form: The form element.

array $form_state: The form state.

1 string reference to 'modules_weight_configuration_form'
modules_weight_menu in ./modules_weight.module
Implements hook_menu().

File

./modules_weight.admin.inc, line 110
Calls results to administration's pages.

Code

function modules_weight_configuration_form(array $form, array &$form_state) {
  $form['modules_weight_show_system_modules'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show system modules'),
    '#return_value' => 1,
    '#default_value' => variable_get('modules_weight_show_system_modules'),
    '#description' => t("Cautions: This module just display non-core modules by default, if you check this option you will be able to change the core modules weight and as you might notice, all core modules has 0 as weight value by default."),
  );
  return system_settings_form($form);
}