You are here

function mailchimp_apikey_ready_access in Mailchimp 7.4

Same name and namespace in other branches
  1. 8 mailchimp.module \mailchimp_apikey_ready_access()
  2. 7.5 mailchimp.module \mailchimp_apikey_ready_access()
  3. 7.3 mailchimp.module \mailchimp_apikey_ready_access()
  4. 2.x mailchimp.module \mailchimp_apikey_ready_access()

Access callback for mailchimp submodule menu items.

3 calls to mailchimp_apikey_ready_access()
mailchimp_activity_entity_access in modules/mailchimp_activity/mailchimp_activity.module
Access callback for mailchimp_activity_entity.
mailchimp_automations_entity_access in modules/mailchimp_automations/mailchimp_automations.module
Access callback for mailchimp_automations_entity.
mailchimp_signup_entity_access in modules/mailchimp_signup/mailchimp_signup.module
Access callback for mailchimp_activity_entity.
3 string references to 'mailchimp_apikey_ready_access'
mailchimp_campaign_menu in modules/mailchimp_campaign/mailchimp_campaign.module
Implements hook_menu().
mailchimp_lists_menu in modules/mailchimp_lists/mailchimp_lists.module
Implements hook_menu().
mailchimp_menu in ./mailchimp.module
Implements hook_menu().

File

./mailchimp.module, line 103
Mailchimp module.

Code

function mailchimp_apikey_ready_access($permission) {
  if (mailchimp_get_api_object() && user_access($permission)) {
    return TRUE;
  }
  return FALSE;
}