You are here

function modules_weight_help in Modules weight 7

Same name and namespace in other branches
  1. 8.2 modules_weight.module \modules_weight_help()
  2. 8 modules_weight.module \modules_weight_help()

Implements hook_help().

File

./modules_weight.module, line 11
Modules weight functionality implementation.

Code

function modules_weight_help($path, $arg) {
  switch ($path) {

    // Main module help.
    case 'admin/help#modules_weight':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Sometimes we need to modify modules execution order, and some people could write a code that execute the query to modify the weight of a module in the system table, some one might go straight to his favorite SQL client and modify the record directly. This module provides an interface to reorder the weight modules.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Configuring the module') . '</dt>';
      $output .= '<dd>' . t('You can manage the module settings from the <a href="@config-page">Modules Weight Settings</a> page. For this you need the <em>Administer Modules Weight</em> permission.', array(
        '@config-page' => url('admin/config/system/modules-weight/configuration'),
      )) . '</dd>';
      $output .= '<dt>' . t('Changing the modules weight') . '</dt>';
      $output .= '<dd>' . t('You can select the weight for all the installed and compatible modules according to the module settings from the <a href="@config-page">Modules Weight</a> page. For this you need the <em>Administer Modules Weight</em> permission.', array(
        '@config-page' => url('admin/config/system/modules-weight'),
      )) . '</dd>';
      $output .= '</dl>';
      return $output;
    case 'admin/config/system/modules-weight':
      $output = '';
      $output .= '<p>' . t("To reorder the modules execution order just change the module's weight (the lowest values are executed first) and click the Save Changes button at the bottom of the page. You can select the weight for all the installed and compatible modules according to the module settings from the <a href='@config-page'>Settings</a> page.", array(
        '@config-page' => url('admin/config/system/modules-weight/configuration'),
      )) . '</p>';
      return $output;
  }
}