You are here

function domain_nav_domainupdate in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_nav/domain_nav.module \domain_nav_domainupdate()
  2. 7.2 domain_nav/domain_nav.module \domain_nav_domainupdate()

Implement hook_domainupdate()

File

domain_nav/domain_nav.module, line 228
Navigation block and menu options for Domain Access

Code

function domain_nav_domainupdate($op, $domain = array(), $edit = array()) {

  // Only execute if the menu is turned on.
  if (DOMAIN_NAV_MENU) {

    // We rebuild the menu, since the domain records have changed.
    // Clear the page cache, so that changed menus are reflected for anonymous users.
    cache_clear_all('*', 'cache_page', TRUE);

    // Also clear the menu cache.
    cache_clear_all('*', 'cache_menu', TRUE);
  }
}