getCredentialDefinitions(); $return = array(); foreach ($props as $prop) { $return[$prop->property] = true; $return[$prop->property . '_helptext'] = true; } return $return; }; } $HANDLER['subsections'][] = 'panel-params'; $HANDLER['grep_panel-params'] = function($module) { $return = []; // DEFAULT is not using this mechanism as it's too specialized foreach (['UPCOMING', 'URL', 'SUMMARY'] as $panelType) { $return['intro-' . $panelType] = true; $params = LocationInfo::getPanelParameters($panelType); $params['string']['panelname'] = []; foreach ($params as $types) { foreach ($types as $key => $data) { if (isset($data['section'])) { if ($data['section'] === false) continue; // Hidden entry; doesn't need translation $return['section_' . $data['section']] = true; } $return[$key] = true; $return[$key . '_helptext'] = true; if (!empty($data['enum'])) { foreach ($data['enum'] as $enum) { $return[$key . '_enum_' . $enum] = true; } } } } } return $return; }; }