[Pieforms-commit] SF.net SVN: pieforms: [65] pieforms-php5/trunk/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
|
From: <ora...@us...> - 2006-11-22 00:39:23
|
Revision: 65
http://svn.sourceforge.net/pieforms/?rev=65&view=rev
Author: oracleshinoda
Date: 2006-11-21 16:39:23 -0800 (Tue, 21 Nov 2006)
Log Message:
-----------
Return value after validating the js callback. Added i18n for the regex rule
Modified Paths:
--------------
pieforms-php5/trunk/src/pieform.php
Modified: pieforms-php5/trunk/src/pieform.php
===================================================================
--- pieforms-php5/trunk/src/pieform.php 2006-11-21 22:43:47 UTC (rev 64)
+++ pieforms-php5/trunk/src/pieform.php 2006-11-22 00:39:23 UTC (rev 65)
@@ -238,7 +238,8 @@
'maxlength' => 'This field must be at most %d characters long',
'minlength' => 'This field must be at least %d characters long',
'integer' => 'The field must be an integer',
- 'validateoptions' => 'The option "%s" is invalid'
+ 'validateoptions' => 'The option "%s" is invalid',
+ 'regex' => 'This field is not in valid form'
)
);
@@ -1161,6 +1162,7 @@
if (!preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name)) {
throw new PieformException("'$name' is not a valid javascript callback name");
}
+ return $name;
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|