- Drupal Developer helps you to learn Drupal by example!
- Learn to develop custom Drupal modules and themes for Drupal5, Drupal6, Drupal7 and Drupal8
- Post your Drupal questions and get solutions.
- Its free to join and post!
This CodeLet creates a tiled dispay of taxonomy block with child terms. If you use taxonomy image module, you can select the preset and taxonomy on block configuration page. The CodeLet then fetches all the tree along with their images and display in tile in the block.
This CodeLet allows you to set any image associated with certain contant type to be used as user profile image. This CodeLet particularly uses 'galleryimage' content type.
This is just a two lines of CodeLet which allows you to redirect your users after they log in to your site. This not complex and super quick
This CodeLet create Transparent png image from 'string', with responsive width.
This CodeLet adds a field on Drupal registration form and allows the user to upload an avatar. This will be saved to user's picuture field on his/her profile. This will work only if 'Picutre' is enabled by the admin.
This CodeLet allows to add products to cart from code. The current product uses an extra text field. The cart view has been modified to accomodate extra fields from the product
This CodeLet will create hash for your admin password. You can provide the string for password and the CodeLet will generate the hash. You can then copy this hash and add in password field in the users table. The code has to be put in index.php of your Drupal installation and the order of the code is important.
This CodeLet demonstration how to create a custom node in code and use different Drupal hooks to build different features.
The CodeLet implements following Drupal hooks:
This CodeLet also creates an xml document which will then be used by the gallery to display images as slideshow.
This CodeLet will ajaxify the respective element and will trigger an event. Respective action will be taken by the code and displayed on the form within the specified wrapper
This CodeLet will fetch and attach File download link & Product key for software prodcuts on a Durpal ubercart store. You will need to call respective function from the order confirmation template.
This CodeLet redirects the user to translate the node in the specified lanaguge. This will reduce the efforts to click on the translation tab and can enhance to transalte the nodes in all the enabled langauges, one-by-one.
This CodeLet add already implemented "Pass ids as arguments to page" on VBO.
Place this CodeLet to your custom module, you can see the customization on Bulk Operations field on the image.
This CodeLet will create achievements using Achievements API provided by Achievements module. The CodeLet describes how to use the API and build the custom Achievements badges for different activities on the site by the users. Based on these activities, a user will be awarded with an achievement badge. The CodeLet uses different Drupal API hooks in order to check whether the user has peformed an activity and is eligible to get the respective achievement badge.
This CodeLet let you allow a download file and track of that file.
This CodeLet will redirect the user to checkout page when user clicks on 'Buy now' button on the product
Use the code and create a custom module
Make sure you keep the weight of the module high in "system" table