You are here

function module_weights_help in Util 6.2

Same name and namespace in other branches
  1. 6.3 module_weights.module \module_weights_help()

Implementation of hook_help().

File

./module_weights.module, line 11
Allows module weights to be viewed and edited.

Code

function module_weights_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#module_weights':
      $output .= '<p>' . t('Drupal assigns each module a weight. For most operations involving any module that defines a particular hook, the modules are invoked in order first by weight, then by name.') . '</p>';
      $output .= '<p>' . t('This module adds a weight column to the modules table at !modules, allowing weights to be viewed and edited. Once activated, a weight column appears on the modules table. To change a module weight, edit its value and press "Save configuration". Any user who can submit the !modules form will be able to change module weights.', array(
        '!modules' => l('admin/build/modules', 'admin/build/modules'),
      )) . '</p>';
      break;
  }
  return $output;
}