Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



1 2 3 4 5 6 7 ... 14
0 1740 posted 15 years ago by picxelplay
0 1646 posted 15 years ago by resting
1 1739 posted 15 years ago by apro2000
**Important: this snipplet has moved to Github.** - [Force the admin theme on additional non-admin paths in Drupal 6](https://gist.github.com/1973090)
3 2188 posted 16 years ago by wildpeaks
Drupal forms have their radio button options vertical (one on each line) by default. This will put them horizontally inline.
0 2203 posted 16 years ago by picxelplay
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
0 1938 posted 16 years ago by cwd
If you're importing nodes from a file and have pathauto setup, the existing paths for the nodes will be rewritten with pathauto. To avoid this, simply add the following to the node export array for each node:
0 1731 posted 16 years ago by jonathanpglick
**Important: this snipplet has moved to Github.** - [Programmatically log out the user in Drupal](https://gist.github.com/1973079)
0 1774 posted 16 years ago by wildpeaks
Just include **global $user;** and **$user->uid != 1** into the function
0 1980 posted 16 years ago by resting
The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0 1843 posted 16 years ago by jonathanpglick
0 1837 posted 16 years ago by hamsterbacke82
Drupal 6 Do this after $view->execute() has already been called
0 1887 posted 16 years ago by jonathanpglick
0 1819 posted 16 years ago by hamsterbacke82
0 1562 posted 16 years ago by hamsterbacke82
0 1389 posted 16 years ago by jmaties
To be placed in template.php preprocess_page function.\\r\\n\\r\\nBreaks stylesheets into 2 style tags with limit of 30 @imports each. IE has a limitation of 31 @imports or 31 style tags. (source: [http://john.albin.net/ie-css-limits/single-style-tes...
1 1800 posted 16 years ago by resting
Drupal snippet
0 2085 posted 16 years ago by apro2000
0 1567 posted 16 years ago by JohnnyGamba
0 1952 posted 16 years ago by resting
1 1944 posted 16 years ago by resting
highlights on active state. uses css gradients
0 1735 posted 16 years ago by discipolo
0 1773 posted 16 years ago by screamwork
1 2 3 4 5 6 7 ... 14