summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-15 10:36:32 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-15 10:36:32 -0500
commitf39ef6f147abace725f966792f2fc27ab1094760 (patch)
tree4df323cd439e9cc742d9616b4d177f9c6610ce39 /pts-core/functions
parentef295a3bb23a29dafaaedccdd4a7de8135182873 (diff)
downloadphoronix-test-suite-upstream-f39ef6f147abace725f966792f2fc27ab1094760.tar.gz
phoronix-test-suite-upstream-f39ef6f147abace725f966792f2fc27ab1094760.tar.xz
phoronix-test-suite-upstream-f39ef6f147abace725f966792f2fc27ab1094760.zip
pts-core: Add __pre_option_process() and __post_option_process() to PTS
module system
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions.php2
-rw-r--r--pts-core/functions/pts-functions_modules.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 84e232d..23fcfc7 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -90,7 +90,9 @@ function pts_run_option_command($command, $pass_args = null, $command_descriptor
include_once("pts-core/options/" . $command . ".php");
}
+ pts_module_process("__pre_option_process", $command);
eval($command . "::run(\$pass_args);");
+ pts_module_process("__post_option_process", $command);
}
}
function p_str($str_o)
diff --git a/pts-core/functions/pts-functions_modules.php b/pts-core/functions/pts-functions_modules.php
index 1d2d716..4763abd 100644
--- a/pts-core/functions/pts-functions_modules.php
+++ b/pts-core/functions/pts-functions_modules.php
@@ -26,7 +26,7 @@
define("PTS_MODULE_UNLOAD", "PTS_MODULE_UNLOAD");
define("PTS_QUIT", "PTS_QUIT");
-function pts_module_start_process()
+function pts_module_startup_init()
{
// Process initially called when PTS starts up
$GLOBALS["PTS_MODULES"] = array();