Revision: 29
http://svn.sourceforge.net/pieforms/?rev=29&view=rev
Author: oracleshinoda
Date: 2006-11-18 04:39:26 -0800 (Sat, 18 Nov 2006)
Log Message:
-----------
Fixed the validateoptions rule
Modified Paths:
--------------
pieforms/src/pieform/rules/validateoptions.php
Modified: pieforms/src/pieform/rules/validateoptions.php
===================================================================
--- pieforms/src/pieform/rules/validateoptions.php 2006-11-18 12:33:21 UTC (rev 28)
+++ pieforms/src/pieform/rules/validateoptions.php 2006-11-18 12:39:26 UTC (rev 29)
@@ -1,6 +1,6 @@
<?php
/**
- * This program is part of Mahara
+ * This program is part of Pieforms
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,27 +16,25 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
- * @package mahara
- * @subpackage form-rule
+ * @package pieform
+ * @subpackage rule
* @author Nigel McNie <ni...@ca...>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
- * @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
+ * @copyright (C) 2006 Catalyst IT Ltd http://catalyst.net.nz
*
*/
-defined('INTERNAL') || die();
-
/**
* Makes sure that the submitted value is specified in the 'options' index of
* the element. This prevents malicious people from doing things like
* submitting values that aren't in a select box.
*
- * @param Form $form The form the rule is being applied to
- * @param string $field The field to check
- * @param string $element The element being checked
- * @return string The error message, if the value is invalid.
+ * @param Pieform $form The form the rule is being applied to
+ * @param string $field The field to check
+ * @param string $element The element being checked
+ * @return string The error message, if the value is invalid.
*/
-function form_rule_validateoptions(Form $form, $field, $element) {
+function pieform_rule_validateoptions(Pieform $form, $field, $element) {
// Get the value into an array as a key if it's a scalar, since
// the actual check involves array keys
if (!is_array($field)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|