Planet Drupal

How to create AMP pages on Drupal to rank better

Accelerated Mobile Pages (AMP) is an open source project initiated by Google to provide better and fast experience to user on mobile. Biggest reason you should be integrating AMP pages with Drupal websites is to rank better on google.

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.