diff options
author | Simon Rettberg | 2016-06-14 16:10:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-06-14 16:10:53 +0200 |
commit | 305a3b16c598a98fc7378de3c2ad271e7813de58 (patch) | |
tree | 3d9d73dd97f5fd8033862771944872fb4338d336 /modules-available/main | |
parent | Remove old static sql install (diff) | |
download | slx-admin-305a3b16c598a98fc7378de3c2ad271e7813de58.tar.gz slx-admin-305a3b16c598a98fc7378de3c2ad271e7813de58.tar.xz slx-admin-305a3b16c598a98fc7378de3c2ad271e7813de58.zip |
[translation] Make menu categories a global section instead of a hook in main
Diffstat (limited to 'modules-available/main')
-rw-r--r-- | modules-available/main/hooks/translation.inc.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/modules-available/main/hooks/translation.inc.php b/modules-available/main/hooks/translation.inc.php index c831cbfd..03fa5f79 100644 --- a/modules-available/main/hooks/translation.inc.php +++ b/modules-available/main/hooks/translation.inc.php @@ -6,7 +6,7 @@ $HANDLER = array(); * List of valid subsections */ $HANDLER['subsections'] = array( - 'categories', 'global-tags' + 'global-tags' ); /* @@ -15,21 +15,6 @@ $HANDLER['subsections'] = array( */ /** - * Configuration categories - */ -$HANDLER['grep_categories'] = function($module) { - $skip = strlen($module->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. |