[Pieforms-commit] SF.net SVN: pieforms: [190] pieforms-php5/branches/0.2.0/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2007-02-27 04:42:40
|
Revision: 190 http://svn.sourceforge.net/pieforms/?rev=190&view=rev Author: oracleshinoda Date: 2007-02-26 20:42:39 -0800 (Mon, 26 Feb 2007) Log Message: ----------- When the successcallback is overridden, allow each submit button to have its own success function named after the overridden name (thanks to Jeremy for that) Modified Paths: -------------- pieforms-php5/branches/0.2.0/src/pieform.php Modified: pieforms-php5/branches/0.2.0/src/pieform.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform.php 2007-02-19 23:17:52 UTC (rev 189) +++ pieforms-php5/branches/0.2.0/src/pieform.php 2007-02-27 04:42:39 UTC (rev 190) @@ -524,7 +524,7 @@ $submitted = false; foreach ($this->get_elements() as $element) { if (!empty($element['submitelement']) && isset($global[$element['name']])) { - $function = "{$this->name}_submit_{$element['name']}"; + $function = "{$this->data['successcallback']}_{$element['name']}"; if (function_exists($function)) { $function($this, $values); $submitted = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |