You are here

function unique_field_permission in Unique field 7

Implements hook_permission().

File

./unique_field.module, line 46
Provides content validation requirement that a node's author, language, taxonomy terms, or other fields are unique.

Code

function unique_field_permission() {
  return array(
    'unique_field_perm_admin' => array(
      'title' => t('Designate fields as unique'),
      'description' => t('Configure whether any fields of a content type should be unique.'),
    ),
    'unique_field_perm_bypass' => array(
      'title' => t('Bypass requirement that fields are unique'),
      'description' => t('Allows users to ignore errors about duplicate content and submit it anyway.'),
    ),
  );
}