Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged drupal
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Was trying to figure out a way to remove tabs for a content type where it was unnecessary. Place this in your theme template.php file and configure to your needs.
Example Usage: Organic Group View is created and page uses a menu tab. Unfortunately...
0
886
posted 14 years ago by Onfire60
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1
955
posted 14 years ago by daipratt
All code should ideally go into your theme\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s template.php file. I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve used the default Garland theme here as an example.
0
866
posted 14 years ago by hiddentao
This example triggers the admin theme when on any of the user/* pages (login, edit, etc.). Put the name of your admin theme in {admin-theme-name} so there's a safe fallback in case variable_get doesn't find the admin_theme.
0
780
posted 14 years ago by jonathanpglick
This snippet allows admins to create menu items which do not link anywhere. This is most useful in situations where one wants to have dropdown menus where the parent item should not be a link.
This same method could be used to create non-linking...
1
895
posted 14 years ago by MikeyLikesIt
change the display of cck grouped terms to implode (commas, no divs) for a cerain field only
0
686
posted 14 years ago by discipolo
Embed Drupal 6 block anywhere with proper block HTML IDs and classes.
0
765
posted 14 years ago by phpdiva
Best used in a node.tpl.php or node-panel-identifier.tpl.php
0
1052
posted 14 years ago by karmacode
initial code and concept bitten from: http://drupal.org/project/menutrails
3
834
posted 14 years ago by electblake
While these examples convert Markdown fields to HTML for use in CKEditor, the same method can be used to render the filters of any input_format.
0
1231
posted 14 years ago by zachharkey
Annoyed by the "username's blog" links on your single-author Drupal blog? Don't reach for "display:none;"! Don't remove the $links variable from your node template!
Just paste this code into your theme's template.php file. Be sure to replace...
1
883
posted 14 years ago by sheena_d