You are here

function mandrill_template_map_access in Mandrill 7.2

Same name and namespace in other branches
  1. 7 modules/mandrill_template/mandrill_template.module \mandrill_template_map_access()

Access callback for mandrill_template_map.

Return value

bool True if current user has acces to template maps, else false

1 string reference to 'mandrill_template_map_access'
mandrill_template_entity_info in modules/mandrill_template/mandrill_template.module
Implements hook_entity_info().

File

modules/mandrill_template/mandrill_template.module, line 46
Enables Drupal to send email using Mandrill's template system.

Code

function mandrill_template_map_access() {
  $a = user_access('configure mandrill templates');
  $b = variable_get('mandrill_api_key');
  return $a & !empty($b);
}