You are here

function shoutbox_domain_menu_alter in Shoutbox 7.2

Same name and namespace in other branches
  1. 7 shoutbox_domain/shoutbox_domain.module \shoutbox_domain_menu_alter()

Implements hook_menu_alter().

File

shoutbox_domain/shoutbox_domain.module, line 86

Code

function shoutbox_domain_menu_alter(&$items) {

  // Override with a wrapper function to check user_access for the default
  // permissions, but also the new domain specific permissions.
  $items['shoutbox']['access callback'] = 'shoutbox_domain_user_access';
  $items['shoutbox/js/view']['access callback'] = 'shoutbox_domain_user_access';
  $items['admin/config/user-interface/shoutbox']['access callback'] = 'shoutbox_domain_user_access';

  //TODO TODO
}