Welcome To Snipplr


Everyone's Recent Snippets Tagged drupal



« Prev 1 2 3 4 5 ... 14
  1. FAV

    Update multiple fields using #ajax in Drupal 7 form

    Update multiple fields using #ajax in Drupal 7 form
    PHP 2 views posted 2 years ago by guruparthi
  2. FAV

    How to use date pop-up calendar in custom drupal form

    How to use date pop-up calendar in custom drupal form
    PHP 2 views posted 3 years ago by guruparthi
  3. FAV

    Disable all ubercart modules

    drush pm-list --status=enabled --pipe | grep 'uc_' | xargs -i drush pm-disable '{}' -y
    Bash 4 views posted 4 years ago by apro2000
  4. FAV

    Drupal 7 - Module .info file

    Starter .info file
    PHP 5 views posted 4 years ago by sherakama
  5. FAV

    Drupal Debug Dev Tool

    Drupal Debugging like Dev Tools
    Bash 2 views posted 5 years ago by apro2000
  6. FAV

    For Changing Drupal Site Name on URL Alias change

    simple preprocess function to alter the site name depending on the section of the site
    PHP 4 views posted 5 years ago by emijayne
  7. FAV

    Copy Drupal field to another field

    This script is a custom module to copy one field to another.
    PHP 4 views posted 6 years ago by DesignGoggles
  8. FAV

    Drupal Views Slideshow show pager items as elements

    Change the Views Slideshow pager items in <li> elements so that they are easier to style
    PHP 1 views posted 6 years ago by mktimes5
  9. FAV

    Create New Account

    Create new user account programmatically - drupal 7
    PHP 9 views posted 6 years ago by pictonio
  10. FAV

    Custom Drupal View Field

    This is a custom field handler for a Drupal view. Sometimes you have two or more fields in a content type and you want to do a test on them to see if both are empty or both full or exclusive and return that as a field. There are probably ways to d...
    PHP 4 views posted 6 years ago by brownrl
  11. FAV

    Render drupal regions in node

    Enables the usage off regions in node.tpl
    PHP 4 views posted 6 years ago by apmartins
  12. FAV

    Drupal views ajax complete

    Get the ajax complete event after filtering a view content in drupal
    jQuery 4 views posted 6 years ago by apmartins
  13. FAV

    Drupal Views Custom download file link

    To make a custom link to a downloadable File in Views
    PHP 2 views posted 6 years ago by mktimes5
  14. FAV

    Drupal Auto Blocks

    This is a hook_block_info and hook_block_view template that will allow you to quickly create blocks in a Drupal module. When you use this all you have to do is create a directory "blocks" in the module and then create block.block_name.php in the dire...
    PHP 2 views posted 7 years ago by brownrl
  15. FAV

    Drupal & field-tpl for mulitple field rendering in a list

    out put a field with multiple values as a list fro styling purposes useing child selectors
    PHP 5 views posted 7 years ago by mktimes5
  16. FAV

    Drush site install / localized

    Installs drupal using the provided database credentials with the provided localization, creates admin account with the given name and password
    Bash 4 views posted 7 years ago by klickreflex
  17. FAV

    Plain field text for field.tpl

    for true plain text output of a field in drupal 7
    PHP 4 views posted 7 years ago by mktimes5
  18. FAV

    hook_help: Provide online user help.

    PHP 1 views posted 7 years ago by LarryTex
  19. FAV

    Drupal Contextual filter by url

    To filter a view only to pull content from the node it is on
    Other 3 views posted 7 years ago by mktimes5
  20. FAV

    Drupal Metatags add in

    Insert this into a custom node template to display the metatags inserted in my the metatag module. <div>nid; ?>" class="<?php> clearfix"<?php>><?php>
    PHP 2 views posted 7 years ago by mktimes5
  21. FAV

    Drupal Block Callback Example

    This is a callback example that can be used to conditionally display blocks on specific pages. In this example, I load all nodes with a specific field and return false if the value of that field is equal to the user id of the logged in user. The sni...
    PHP 4 views posted 7 years ago by chasecrawford
  22. FAV

    Add Styles to the drop-down menu in Umbraco

    Add Styles to the drop-down menu for editors to use
    Other 1 views posted 7 years ago by thesmu
  23. FAV

    Drupal 7 Theming: Initialize JQuery Script

    Use this no-conflict wrapper instead of the default ready function in JQuery to initialize scripts in your Drupal 7 theme
    JavaScript 9 views posted 7 years ago by chasecrawford
  24. FAV

    Drupal webform select time zones

    Safe Key-value pairs for time zones for use with Drupal Webform module.
    HTML 3 views posted 7 years ago by usrbingeek
  25. FAV

    Drupal Format time ago

    Foromat {timestamp} as a "x x ago" date/time.
    PHP 8 views posted 7 years ago by jonathanpglick
  26. FAV

    imagecache preset function

    imagecache preset depending on height and width of the image
    PHP 5 views posted 7 years ago by hoogvlieger
  27. FAV

    Node Type Page TPLs

    Add this snippet to template.php
    PHP 4 views posted 7 years ago by mktimes5
  28. FAV

    Drupal - Add canonical tag in

    For our project, this code had been implemented in the theme template.php
    PHP 3 views posted 8 years ago by nicoknaepen
  29. FAV

    Drupal Batch API for hook_update_N()

    This is the Batch API example shown on http://api.drupal.org/api/drupal/developer--hooks--install.php/function/hook_update_N/6.
    PHP saved by 2 people 4 views posted 8 years ago by wizonesolutions
  30. FAV

    some jQuery samples -- back to top / fadein fadeout menu / drupal menu open new window

    jQuery saved by 3 people 12 views posted 8 years ago by nickyangau
« Prev 1 2 3 4 5 ... 14