Welcome To Snipplr
Everyone's Recent Snippets Tagged drupal
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Move form element into category. Helper for organizing the form
0
576
posted 15 years ago by kosmikko
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
792
posted 15 years ago by Ateneatech
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
825
posted 15 years ago by berkes
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
604
posted 15 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
811
posted 15 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
534
posted 15 years ago by jonathanpglick
calendar module's mini calendar includes a needles 'empty day' div in every date cell. this kills them.
0
761
posted 15 years ago by canarymason
This function goes in the {module\_name}.views\_default.inc file
0
596
posted 15 years ago by jonathanpglick
This will trigger views to load the views in the file {module\_name}.views\_default.inc
0
555
posted 15 years ago by jonathanpglick
Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
1
757
posted 15 years ago by humanoid