Planet Drupal

How to Debug Drupal?

If you got a generic error in Drupal and are not sure why then it's time to enable Drupal Debugging options and error reporting to better understand the error.

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.
Subscribe to Planet Drupal