How to hide the user account tabs 06/04/2016 Juan Jesús Trigo Drupal/PHP Senior developer /** * Implements hook_menu_alter(). */ function MYMODULE_menu_alter(&$items) { $items['user/register']['type'] = MENU_CALLBACK; $items['user/password']['type'] = MENU_CALLBACK; $items['user/login']['type'] = MENU_CALLBACK; }
Others Solve the ‘Segmentation Fault’ error using Drush Rafael Vergara The objective of this snippet is to try to eliminate the ‘Segmentation Fault’ error which appears when any Drush command runs. Read article Solve the ‘Segmentation Fault’ error using Drush La Drupalera rvergara
Forms How to render a form programmatically in Drupal 8? José Antonio Rodríguez Carvajal The purpose of this Drupal 8’s snippet is to learn how to render a form programmatically in Drupal 8. Read article How to render a form programmatically in Drupal 8? La Drupalera jacarvajal
Entities Alter the presentation (view mode) of an entity in its preview Pepe García This is how to modify the presentation (view mode) of an entity according to the conditions that we need through the implementation of a hook_entity_view_mode_alter. Read article Alter the presentation (view mode) of an entity in its preview La Drupalera José García García