DrupalBin
Submit Code
About
Recent Posts
admin settings not saving
17 min 49 sec
ago
Code
1 hour 56 sec
ago
Code
1 hour 16 min
ago
css path
3 hours 58 sec
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for Code
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
phptemplate_form($element) { $id ='id1,id2,id3,id4,en,nog,een,id'; if (in_array($element['#id'], explode(',', $id))) { $element['attributes']['class'] .= 'JOUWCUSTOMCLASS'; } // Anonymous div to satisfy XHTML compliance. $action = $element['#action'] ? 'action="'. check_url($element['#action']) .'" ' : ''; return '<form '. $action .' accept-charset="UTF-8" method="'. $element['#method'] .'" id="'. $element['#id'] .'"'. drupal_attributes($element['#attributes']) .">\n<div>". $element['#children'] ."\n</div></form>\n"; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.