getIdentifier()) + 1; $want = array(); foreach (Module::getAll() as $module) { $cat = $module->getCategory(); if (is_string($cat)) { $want[substr($cat, $skip)] = true; } } return $want; }; /** * Global tags. * This just returns the union of global tags of all languages, as there is no * way to define a definite set of required global tags. */ $HANDLER['grep_global-tags'] = function($module) { $want = array(); foreach (Dictionary::getLanguages() as $lang) { $want += Dictionary::getArray($module->getIdentifier(), 'global-tags', $lang); } return $want; };