You are here

function disable_login_help in Disable Login Page 7

Same name and namespace in other branches
  1. 1.0.x disable_login.module \disable_login_help()

Implements hook_help().

File

./disable_login.module, line 11
Disable Login module, for protecting login page from anonymous users.

Code

function disable_login_help($path, $arg) {
  switch ($path) {
    case 'admin/help#disable_login':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3> ';
      $output .= t('Gives a site owner options to disable access to the
        /user/login page from anonymous users.');
      $output .= '<h4>' . t('Features') . '</h4>';
      $output .= '<ol>';
      $output .= '<li>' . t('Disable Login Page is a simple module that prevents
        access to the default Drupal Login Page to
        anonymous users without the use of a secret key.') . '</li>';
      $output .= '</ol>';
      $output .= '<h4>' . t('Configuration') . '</h4>';
      $output .= '<ol>';
      $output .= '<li>' . t('Visit the configuration page at:') . '<strong>"' . t('Administration >> Configuration >>
        Development >> Disable Login') . '"</strong></li>';
      $output .= '<li>' . t('You can enable or disable the protection in the
        configuration page.') . '</li>';
      $output .= '<li>' . t(' You can also define the name of the secret key
        and the corresponding secret value for the key
        that will allow access to your login page.') . '</li>';
      $output .= '<li>' . t('Hit "Save Configuration" to save the settings.') . '</li>';
      return $output;
  }
}