You are here

function mailchimp_activity_access in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_access()
  2. 7.2 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_access()
  3. 7.3 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_access()

Access callback for activity menu items.

1 string reference to 'mailchimp_activity_access'
mailchimp_activity_menu in modules/mailchimp_activity/mailchimp_activity.module
Implements hook_menu().

File

modules/mailchimp_activity/mailchimp_activity.module, line 81
Module file for mailchimp_activity.

Code

function mailchimp_activity_access(MailchimpActivityEntity $mailchimp_activity_entity) {
  if ($mailchimp_activity_entity->enabled && user_access('access mailchimp activity')) {
    return TRUE;
  }
  return FALSE;
}