summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-28 01:58:50 +0000
committerColin Smith <colin@pfsense.org>2005-04-28 01:58:50 +0000
commit251924083548cce2c61377ddcd23dfea33679317 (patch)
treee1dda11cc2a3459622b105278c517db8982ddc3a /etc/inc/pfsense-utils.inc
parent2265659ba257ea4dd9b66a15c2e9ffc6c722506b (diff)
downloadpfsense-251924083548cce2c61377ddcd23dfea33679317.zip
pfsense-251924083548cce2c61377ddcd23dfea33679317.tar.gz
Document a few more functions.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 91ddd04..9289ec4 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -36,20 +36,23 @@
/****f* pfsense-utils/log_error
* NAME
* log_error - Sends a string to syslog.
+ * INPUTS
+ * $error - string containing the syslog message.
* RESULT
* null
******/
-
-/*
- * log_error: send string to syslog
- */
function log_error($error) {
syslog(LOG_WARNING, $error);
return;
}
-/*
- * return_dir_as_array($dir): returns $dir contents as an array
+/****f* pfsense-utils/return_dir_as_array
+ * NAME
+ * return_dir_as_array - Return a directory's contents as an array.
+ * INPUTS
+ * $dir - string containing the path to the desired directory.
+ * RESULT
+ * $dir_array - array containing the directory's contents. This array will be empty in the event of an array.
*/
function return_dir_as_array($dir) {
$dir_array = array();
OpenPOWER on IntegriCloud