function campaignmonitor_user_access in Campaign Monitor 7
Access callback for the user newsletters page.
1 string reference to 'campaignmonitor_user_access'
- campaignmonitor_user_menu in modules/
campaignmonitor_user/ campaignmonitor_user.module - Implements hook_menu().
File
- modules/
campaignmonitor_user/ campaignmonitor_user.module, line 42 - Tab to the profile page to select newsletters to subscribe to.
Code
function campaignmonitor_user_access($account) {
global $user;
if ($user->uid && $user->uid == $account->uid && user_access('access campaign monitor user')) {
return TRUE;
}
return FALSE;
}