function mailchimp_activity_access in Mailchimp 7.5
Same name and namespace in other branches
- 7.2 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_access()
- 7.3 modules/mailchimp_activity/mailchimp_activity.module \mailchimp_activity_access()
- 7.4 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;
}