diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-04 15:30:50 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-04 15:30:50 -0500 |
commit | 7472232a1dbfa28f75e1ecdc4de50871a48c43a2 (patch) | |
tree | feb9af847ee8d3c024b7cd5460b11d80ae3ab3c9 /pts-core/functions | |
parent | de3623e4dd35d95ec12a4e2f0a8e70c43e56f87f (diff) | |
download | phoronix-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.php | 6 |
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 |