Author: lombardot
Date: 2010-04-28 11:01:59 +0200 (Wed, 28 Apr 2010)
New Revision: 29289

Modified:
   plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php
Log:
[sfEmailMeAFireShotPlugin] lombardot add $options for link

Modified: 
plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php
===================================================================
--- plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php    
2010-04-28 08:56:46 UTC (rev 29288)
+++ plugins/sfEmailMeAFireShotPlugin/lib/helper/sfEmailMeAFireShotHelper.php    
2010-04-28 09:01:59 UTC (rev 29289)
@@ -1,8 +1,9 @@
 <?php
 
-function link_sfEmailMeAFireShot($content,$action="edit"){
+function link_sfEmailMeAFireShot($content,$action="edit",$options=array()){
+       $options=array_merge($options,array('onclick'=>'shotAnd("'.$action.'"); 
return false;','href'=>'#'));
        return content_tag('span',
-               
content_tag('a',$content,array('onclick'=>'shotAnd("'.$action.'"); return 
false;','href'=>'#')),
+               content_tag('a',$content,$options),
        array('id'=>'sfEmailMeAFireShot'));
        
 }

-- 
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