]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
More fixes for new installer and script in general :(
[mailer.git] / inc / wrapper-functions.php
index fe5834dcd714c9193771088455116752f3d19e7a..60fccd2839885a52905aa0d3061e090bb1ade3ec 100644 (file)
@@ -673,6 +673,27 @@ function setModule ($newModule) {
        $GLOBALS['__module'] = strtolower($newModule);
 }
 
+// Wrapper to get extra module names
+function getExtraModule () {
+       // Default is 'NULL'
+       $extra = 'NULL';
+
+       // Is 'tab/step' set?
+       if (isPostRequestElementSet('tab')) {
+               // Use this
+               $extra = 'tab=' . postRequestElement('tab');
+       } elseif (isPostRequestElementSet('step')) {
+               // Use this
+               $extra = 'step=' . postRequestElement('step');
+       } elseif ((isActionSet()) && (isWhatSet())) {
+               // Use 'action/what'
+               $extra = 'action=' . getAction() . ':what=' . getWhat();
+       }
+
+       // Return it
+       return $extra;
+}
+
 // Checks whether module is set and optionally aborts on miss
 function isModuleSet ($strict = FALSE) {
        // Check for it