summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-04 15:30:50 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-04 15:30:50 -0500
commit7472232a1dbfa28f75e1ecdc4de50871a48c43a2 (patch)
treefeb9af847ee8d3c024b7cd5460b11d80ae3ab3c9 /pts-core/functions
parentde3623e4dd35d95ec12a4e2f0a8e70c43e56f87f (diff)
downloadphoronix-test-suite-upstream-7472232a1dbfa28f75e1ecdc4de50871a48c43a2.tar.gz
phoronix-test-suite-upstream-7472232a1dbfa28f75e1ecdc4de50871a48c43a2.tar.xz
phoronix-test-suite-upstream-7472232a1dbfa28f75e1ecdc4de50871a48c43a2.zip
pts-core: Add pts_load_function_set() for loading functions within PTS
options
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 743a4ba..4493157 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -265,6 +265,12 @@ function pts_unique_runtime_identifier()
return $identifier;
}
+function pts_load_function_set($title)
+{
+ $function_file = "pts-core/functions/pts-functions-" . $title . ".php";
+
+ return is_file($function_file) && include_once($function_file);
+}
function pts_clean_information_string($str)
{
// Clean a string containing hardware information of some common things to change/strip out