[Pieforms-commit] SF.net SVN: pieforms: [24] pieforms/src/pieform/rules/email.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2006-11-18 12:00:09
|
Revision: 24 http://svn.sourceforge.net/pieforms/?rev=24&view=rev Author: oracleshinoda Date: 2006-11-18 04:00:03 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Cleaned up header and fixed implementation of email rule Modified Paths: -------------- pieforms/src/pieform/rules/email.php Modified: pieforms/src/pieform/rules/email.php =================================================================== --- pieforms/src/pieform/rules/email.php 2006-11-18 11:53:53 UTC (rev 23) +++ pieforms/src/pieform/rules/email.php 2006-11-18 12:00:03 UTC (rev 24) @@ -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,28 +16,26 @@ * 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(); - /** * Returns whether the given field is a valid e-mail address. * * Currently, the check is [anything]@[anything]. Someone is welcome to write * something better, this was made just for testing. * - * @param Form $form The form the rule is being applied to - * @param string $value The e-mail address to check - * @return string The error message, if there is something wrong with - * the address. + * @param Pieform $form The form the rule is being applied to + * @param string $value The e-mail address to check + * @return string The error message, if there is something wrong with + * the address. */ -function form_rule_email(Form $form, $value) { +function form_rule_email(Pieform $form, $value) { if (!preg_match('/^(.*)@(.*)\.(.*)$/', $value)) { return $form->i18n('email'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |