You are here

function menu_per_role_help in Menu Per Role 7

Same name and namespace in other branches
  1. 8 menu_per_role.module \menu_per_role_help()

Implements hook_help().

File

./menu_per_role.module, line 11
Allows restricting access to menu items per role.

Code

function menu_per_role_help($path, $arg) {
  switch ($path) {
    case 'admin/help#menu_per_role':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Menu Per Role module allows you to restrict access of menu items per roles.') . '</p>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<p>' . t('Just activate the Menu Per Role module and edit a menu item as usual. There will be one or two fieldsets, depending on the configuration of the module, that allows you to restrict access by role.') . '</p>';
      $output .= '<p>' . t("If you don't check any roles the default access permissions will be kept. Otherwise the module will additionally restrict access to the chosen user roles.") . '</p>';
      return $output;
  }
}