You are here

function devel_help in Devel 7

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. 5 devel.module \devel_help()
  5. 6 devel.module \devel_help()
  6. 4.x devel.module \devel_help()

Implements hook_help().

File

./devel.module, line 24
This module holds functions useful for Drupal development.

Code

function devel_help($section) {
  switch ($section) {
    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 documentation.') . '</p>';
    case 'devel/session':
      return '<p>' . t('Here are the contents of your <code>$_SESSION</code> variable.') . '</p>';
    case 'devel/variable':
      $api = variable_get('devel_api_url', 'api.drupal.org');
      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}/api/HEAD/function/variable_get",
        '@variable-set-doc' => "http://{$api}/api/HEAD/function/variable_set",
      )) . '</p>';
    case 'devel/reinstall':
      return t('Warning - will delete your module tables and variables.');
  }
}