You are here

public function MailChimpSignupUIController::hook_menu in Mailchimp 7.5

Same name and namespace in other branches
  1. 7.3 modules/mailchimp_signup/includes/mailchimp_signup.ui_controller.inc \MailChimpSignupUIController::hook_menu()
  2. 7.4 modules/mailchimp_signup/includes/mailchimp_signup.ui_controller.inc \MailChimpSignupUIController::hook_menu()

Overrides parent::hook_menu().

Overrides EntityDefaultUIController::hook_menu

File

modules/mailchimp_signup/includes/mailchimp_signup.ui_controller.inc, line 16
Class file for Mailchimp Signup UI Controller.

Class

MailChimpSignupUIController
Override EntityDefaultUIController to customize our menu items.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  $items[$this->path]['title'] = t('Signup Forms');
  $items[$this->path]['description'] = t('Manage MailChimp Signup blocks and pages.');
  $items[$this->path]['type'] = MENU_LOCAL_TASK;
  $items[$this->path]['weight'] = 10;
  $items[$this->path]['access callback'] = 'mailchimp_signup_entity_access';
  return $items;
}