Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



1 ... 5 6 7 8 9 ... 14
0 1255 posted 15 years ago by karmacode
initial code and concept bitten from: http://drupal.org/project/menutrails
3 1662 posted 15 years ago by electblake
0 1065 posted 15 years ago by jepedo
0 1370 posted 15 years ago by electblake
This overrides a couple core Drupal functions in the autocomplete.js file. It changes the behavior of the autocomplete such that if a user selects an item from the autocomplete menu, it takes them directly to that node instead of just populating the...
1 1378 posted 15 years ago by unravelme1
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 2107 posted 15 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 1430 posted 15 years ago by sheena_d
This example will return values -15 through 15 to be presented to the user in a select list for an integer CCK field.
0 1558 posted 15 years ago by tgbdad
0 1299 posted 15 years ago by unravelme1
procedure for updating drupal core.
0 1054 posted 15 years ago by MikeyLikesIt
A simple script to run with [drush](http://drupal.org/project/drush) to clean all Drupal nodes containing style tags.
1 1518 posted 15 years ago by mongolito404
0 1106 posted 15 years ago by sennesaelium
Resizing fields using a custom module You could also resize the field using a custom module. For example, if you created mysite.module, you could use something like this to reduce the field size to 30 characters
4 2127 posted 15 years ago by marcelodornelas
Drupal allows hook_update_N to run any sort of code. Most of the time, however, people only use this to alter the database scheme. But you can use it for much more. Like setting variables, creating nodes, importing views and so on. This code show...
2 1914 posted 15 years ago by berkes
2 1671 posted 15 years ago by marcelodornelas
2 1199 posted 16 years ago by sennesaelium
0 1577 posted 16 years ago by humanoid
1 1594 posted 16 years ago by humanoid
By using hook_form_alter, you can add your own callback functions to any Drupal form. These functions will be called when Drupal validates the form and when Drupal submits it. In example below, a module called 'simple_checkout' adds its own hand...
1 1761 posted 16 years ago by berkes
Not tested yet on drupal 6
1 1094 posted 16 years ago by mbria
0 1213 posted 16 years ago by karmacode
1 1264 posted 16 years ago by sennesaelium
1 1200 posted 16 years ago by jodm
1 ... 5 6 7 8 9 ... 14