Author: dordille
Date: 2010-01-11 17:53:35 +0100 (Mon, 11 Jan 2010)
New Revision: 26480

Modified:
   plugins/pkMediaCMSSlotsPlugin/trunk/lib/form/pkContextCMSButtonForm.class.php
Log:
ButtonForm update for title

Modified: 
plugins/pkMediaCMSSlotsPlugin/trunk/lib/form/pkContextCMSButtonForm.class.php
===================================================================
--- 
plugins/pkMediaCMSSlotsPlugin/trunk/lib/form/pkContextCMSButtonForm.class.php   
    2010-01-11 15:57:07 UTC (rev 26479)
+++ 
plugins/pkMediaCMSSlotsPlugin/trunk/lib/form/pkContextCMSButtonForm.class.php   
    2010-01-11 16:53:35 UTC (rev 26480)
@@ -10,8 +10,14 @@
   }
   public function configure()
   {
-    $this->setWidgets(array('url' => new sfWidgetFormInputText(array(), 
array('class' => 'pkContextCMSButtonSlot'))));
-    $this->setValidators(array('url' => new 
sfValidatorCallback(array('callback' => array($this, 'validateUrl')))));
+    $this->setWidgets(array(
+      'url' => new sfWidgetFormInputText(array(), array('class' => 
'pkContextCMSButtonSlot')),
+      'title' => new sfWidgetFormInputText(array(), array('class' => 
'pkContextCMSButtonSlot'))
+    ));
+    $this->setValidators(array(
+      'url' => new sfValidatorCallback(array('callback' => array($this, 
'validateUrl'))),
+      'title' => new sfValidatorString()
+    ));
     $this->widgetSchema->setNameFormat('slotform-' . $this->id . '[%s]');
   }
   

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to