function campaignmonitor_user_menu in Campaign Monitor 7
Implements hook_menu().
File
- modules/
campaignmonitor_user/ campaignmonitor_user.module, line 23 - Tab to the profile page to select newsletters to subscribe to.
Code
function campaignmonitor_user_menu() {
$items = [];
$items['user/%user/newsletters'] = [
'title' => 'My newsletters',
'page callback' => 'drupal_get_form',
'page arguments' => [
'campaignmonitor_user_form',
],
'access callback' => 'campaignmonitor_user_access',
'access arguments' => [
1,
],
'type' => MENU_LOCAL_TASK,
'weight' => 5,
];
return $items;
}