You are here

function user_readonly_permission in User Read-Only 7

Implements hook_permission().

File

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

Code

function user_readonly_permission() {
  return array(
    'administer user read-only settings' => array(
      'title' => t('Administer read-only settings'),
      'description' => t('Set which fields will be set to be read-only on user accounts.'),
    ),
    'modify user read-only settings' => array(
      'title' => t('Modify read-only settings'),
      'description' => t('Modify restricted fields on user accounts.'),
    ),
  );
}