Planet Drupal

Integrate AMP with Drupal to rank on Google

The biggest reason you should be integrating AMP pages with Drupal websites is to rank better in google and display content faster on mobile devices. Here is the tutorial to explain how you can implement AMP pages with Drupal with just contributed modules.

Translating views strings programmatically in Drupal 8

In Drupal 8 views strings like sort options, header, footer or any other string can only be translated through configuration translation but here is a code snippet to add translations for a view programmatically with config override.

Right way to call theme functions in Drupal

Drupal core and contrib modules defines theme functions. These theme functions can be defined by themes as well. hook_theme() implementations is where all the information exists.

Role Delay Module - Automatically assign role to user

There are situations where drupal you want to assign a particular role to a user after he/she has been registered for a period of time. This functionality might be needed for situations where you want a user to get permission to perform a particular task on your site.

Unblock users with Views Bulk Operations (VBO) in Drupal 7

While creating the user's list in views, Views Bulk Operations (VBO) module gives the option to perform 'Block current users' operation but doesn't give any option to perform 'Unblock current user' operation. Here is the code snippet tutorial to add "Unblock users" option in Views Bulk Operations in views.
Subscribe to Planet Drupal