function entity_example_permission in Examples for Developers 7
Implements hook_permission().
Related topics
File
- entity_example/
entity_example.module, line 237 - Implements the basic functionality required to create and display an entity.
Code
function entity_example_permission() {
$permissions = array(
'administer entity_example_basic entities' => array(
'title' => t('Administer entity_example_basic entities'),
),
'view any entity_example_basic entity' => array(
'title' => t('View any Entity Example Basic entity'),
),
'edit any entity_example_basic entity' => array(
'title' => t('Edit any Entity Example Basic entity'),
),
'create entity_example_basic entities' => array(
'title' => t('Create Entity Example Basic Entities'),
),
);
return $permissions;
}