You are here

function user_readonly_help in User Read-Only 7

Same name and namespace in other branches
  1. 5 user_readonly.module \user_readonly_help()
  2. 6 user_readonly.module \user_readonly_help()

Implements hook_help().

File

./user_readonly.module, line 47
This module provides restrictions on user account/profile fields.

Code

function user_readonly_help($path, $arg) {
  switch ($path) {
    case 'admin/config/people/user_readonly':
      global $user;
      return t('Here you can define modification restrictions for user/profile editing. ' . 'The options below the fieldsets correspond to the appropriate fields which are ' . 'visible in <a href="@account_url">account settings form</a>.  Note that ' . 'password-type and date-type fields cannot be set read-only; they must be hidden.', array(
        '@account_url' => url("user/{$user->uid}/edit"),
      ));
      break;
  }
}