DrupalBin
Submit Code
About
Recent Posts
Code
4 min 44 sec
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
2 hours 55 min
ago
Code
3 hours 51 min
ago
Code
7 hours 49 min
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 (strpos($id, $element['#id']) !== FALSE) { $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.