Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged drupal



0 1105 posted 16 years ago by level09
1 1327 posted 16 years ago by ReeceMarsland
0 1606 posted 16 years ago by ReeceMarsland
force fields to be added to the search index on update
1 1261 posted 16 years ago by ReeceMarsland
0 1292 posted 16 years ago by Ateneatech
Move form element into category. Helper for organizing the form
0 1096 posted 16 years ago by kosmikko
Inserts a block with the id of 26
1 1283 posted 16 years ago by nate63179
Via: [http://www.touchdesk.nl/2009/04/full-menu-tree-with-active-trail-in-drupal-6/](http://www.touchdesk.nl/2009/04/full-menu-tree-with-active-trail-in-drupal-6/)
0 1352 posted 16 years ago by Ateneatech
Replace *foo* with your module name
0 1333 posted 16 years ago by Ateneatech
1 1284 posted 16 years ago by level09
1 1312 posted 16 years ago by level09
1 1332 posted 16 years ago by ReeceMarsland
1 1298 posted 16 years ago by ReeceMarsland
0 1293 posted 16 years ago by terrencewood
Takes a .sql file and runs trough that, each line as an update_sql. Very usefull to track and migrate your blocks/views/cck etc changes.
0 1523 posted 16 years ago by berkes
0 1070 posted 16 years ago by lexx
2 1278 posted 16 years ago by sennesaelium
If you want to set the active menu trail in a node, simply add this to your template.php in the 'template preprocess node' function.
0 1143 posted 16 years ago by ccalnan
Sometimes, the first or last block in a region needs to be styled different than the rest. This solution do this in simple way for Drupal 6. (originaly code from [email protected]: http://drupal.org/node/293188#comment-1282186)
2 1533 posted 16 years ago by Fake
If `views_embed_view()` or just `$view->execute()` are called, the default view settings are used (only shows 10 entries, etc.) so we have to call `$view->set_display()` & `$view->pre_execute()`.
0 1124 posted 16 years ago by jonathanpglick
1 1521 posted 16 years ago by jmiller
calendar module's mini calendar includes a needles 'empty day' div in every date cell. this kills them.
0 1387 posted 16 years ago by canarymason