function services_entity_test_permission in Services Entity API 7.2
Implements hook_permission().
File
- tests/
services_entity_test/ services_entity_test.module, line 60 - services_entity_test.module Provides a test entity type for the services entity tests.
Code
function services_entity_test_permission() {
return array(
'create services_entity_test entities' => array(
'title' => t('View'),
),
'view services_entity_test entities' => array(
'title' => t('View'),
),
// This is normally 'edit' for most entities, but this keeps it in line
// with the name of the service, so is better DX within the test.
'update services_entity_test entities' => array(
'title' => t('View'),
),
'delete services_entity_test entities' => array(
'title' => t('View'),
),
);
}