You are here

function properties_permission in Dynamic properties 7

Implements hook_permission().

File

./properties.module, line 11
This module provides a dynamic property field that can contain an unlimited number of attribute value pairs.

Code

function properties_permission() {
  return array(
    'administer properties attributes' => array(
      'title' => t('Administer attributes'),
      'description' => t('Allows to create new, edit existing and delete attributes.'),
    ),
    'administer properties categories' => array(
      'title' => t('Administer categories'),
      'description' => t('Allows to create new, edit existing and delete categories.'),
    ),
    'add properties categories' => array(
      'title' => t('Add categories to content'),
      'description' => t('Allows to add existing categories to content.'),
    ),
    'add properties attributes' => array(
      'title' => t('Add attributes to content'),
      'description' => t('Allows to add existing attributes to content or change existing ones.'),
    ),
  );
}