You are here

function devel_help in Devel 5

Same name and namespace in other branches
  1. 8.3 devel.module \devel_help()
  2. 8 devel.module \devel_help()
  3. 8.2 devel.module \devel_help()
  4. 6 devel.module \devel_help()
  5. 7 devel.module \devel_help()
  6. 4.x devel.module \devel_help()

Implementation of hook_help().

File

./devel.module, line 28

Code

function devel_help($section) {
  switch ($section) {
    case 'admin/settings/devel':
      return '<p>' . t('Helper functions, pages, and blocks to assist Drupal developers. The devel blocks can be managed via the <a href="@block">block administration</a> page.', array(
        '@block' => url('admin/build/block'),
      )) . '</p>';
    case 'devel/reference':
      return '<p>' . t('This is a list of defined user functions that generated this current request lifecycle. Click on a function name to view its documention.') . '</p>';
    case 'devel/reinstall':
      return '<p>' . t('Clicking a module\'s reinstall button will simulate uninstalling/installing a module. <code>hook_uninstall()</code> and <code>hook_install()</code> will be executed and the schema version number will be set to the most recent update number. You may have to manually clear out any existing tables first if the module doesn\'t implement <code>hook_uninstall()</code>.') . '</p>';
    case 'devel/session':
      return '<p>' . t('Here are the contents of your <code>$_SESSION</code> variable.') . '</p>';
    case 'devel/variable':
      return '<p>' . t('This is a list of the variables and their values currently stored in variables table and the <code>$conf</code> array of your settings.php file. These variables are usually accessed with <a href="@variable-get-doc">variable_get()</a> and <a href="@variable-set-doc">variable_set()</a>. Variables that are too long can slow down your pages.', array(
        '@variable-get-doc' => 'http://api.drupal.org/api/HEAD/function/variable_get',
        '@variable-set-doc' => 'http://api.drupal.org/api/HEAD/function/variable_set',
      )) . '</p>';
  }
}