/** * Restore/load all callbacks declared in the given module's implementation of * hook_crumbs_plugins(), e.g. via $api->routeParentCallback(). * * @param string $module */ protected function restoreModuleCallbacks($module) { $f = $module . '_crumbs_plugins'; if (!function_exists($f)) { // The module may have been disabled in the meantime, // or the function has been removed by a developer. $this->callbacks[$module] = array(); return; } $this->discoveryOngoing = TRUE; $this->api->setModule($module); $f($this->api); $this->discoveryOngoing = FALSE; $this->callbacks[$module] = $this->api->getModuleCallbacks($module); }