function tripal_library_permission
2.x tripal_library.module | tripal_library_permission() |
3.x tripal_library.module | tripal_library_permission() |
Implements hook_permission().
Set the permission types that the chado module uses. Essentially we want permissionis that protect creation, editing and deleting of chado data objects
Related topics
File
- legacy/
tripal_library/ tripal_library.module, line 31 - Integrates the Chado Library module with Drupal Nodes & Views
Code
function tripal_library_permission() {
return array(
/*
'access chado_library content' => array(
'title' => t('View Libraries'),
'description' => t('Allow users to view library pages.'),
),
'create chado_library content' => array(
'title' => t('Create Libraries'),
'description' => t('Allow users to create new library pages.'),
),
'delete chado_library content' => array(
'title' => t('Delete Libraries'),
'description' => t('Allow users to delete library pages.'),
),
'edit chado_library content' => array(
'title' => t('Edit Libraries'),
'description' => t('Allow users to edit library pages.'),
),
'administer tripal library' => array(
'title' => t('Administer Libraries'),
'description' => t('Allow users to administer all libraries.'),
),
*/
);
}