function rules_help

Same name in other branches
  1. 8.x-3.x rules.module \rules_help()

Implements hook_help().

File

./rules.module, line 1695

Code

function rules_help($path, $arg) {
    // Only enable the help if the admin module is active.
    if ($path == 'admin/help#rules' && module_exists('rules_admin')) {
        $output['header'] = array(
            '#markup' => t('Rules documentation is kept online. Please use the links below for more information about Rules. Feel free to contribute to improving the online documentation!'),
        );
        // Build a list of essential Rules help pages, formatted as a bullet list.
        $link_list['rules'] = l(t('Rules introduction'), rules_external_help('rules'));
        $link_list['terminology'] = l(t('Rules terminology'), rules_external_help('terminology'));
        $link_list['scheduler'] = l(t('Rules Scheduler'), rules_external_help('scheduler'));
        $link_list['coding'] = l(t('Coding for Rules'), rules_external_help('coding'));
        $output['topic-list'] = array(
            '#markup' => theme('item_list', array(
                'items' => $link_list,
            )),
        );
        return render($output);
    }
}