You are here

function mandrill_activity_access in Mandrill 7

Same name and namespace in other branches
  1. 7.2 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;
}