function mandrill_activity_access in Mandrill 7.2
Same name and namespace in other branches
- 7 modules/mandrill_activity/mandrill_activity.module \mandrill_activity_access()
Access callback for activity menu items.
1 string reference to 'mandrill_activity_access'
- mandrill_activity_menu in modules/
mandrill_activity/ mandrill_activity.module - Implements hook_menu().
File
- modules/
mandrill_activity/ mandrill_activity.module, line 72 - Main module functions for mandrill_activity.
Code
function mandrill_activity_access(MandrillActivityEntity $mandrill_activity_entity) {
if ($mandrill_activity_entity->enabled && user_access('access mandrill activity')) {
return TRUE;
}
return FALSE;
}