function tripal_stock_permission
2.x tripal_stock.module | tripal_stock_permission() |
3.x tripal_stock.module | tripal_stock_permission() |
Implements hook_permission(). Set the permission types that the chado stock module uses
Return value
Listing of the possible permission catagories
Related topics
File
- tripal_stock/
tripal_stock.module, line 160 - Basic functionality for stocks
Code
function tripal_stock_permission() {
return array(
'access chado_stock content' => array(
'title' => t('View Stocks'),
'description' => t('Allow users to view stock pages.'),
),
'create chado_stock content' => array(
'title' => t('Create Stocks'),
'description' => t('Allow users to create new stock pages.'),
),
'delete chado_stock content' => array(
'title' => t('Delete Stocks'),
'description' => t('Allow users to delete stock pages.'),
),
'edit chado_stock content' => array(
'title' => t('Edit Stocks'),
'description' => t('Allow users to edit stock pages.'),
),
'administer tripal stock' => array(
'title' => t('Administer Stocks'),
'description' => t('Allow users to administer all stocks.'),
),
);
}