The problem I raise is due to duality of php (cli), which means several versions of php are installed in our computer.
In this snippet we will know how to trim any string in Drupal way using the truncate_utf8 function.
This snippet for Drupal 7 is a follow up from this one: Crear formato personalizado para un campo de tipo fecha In order to implement a settings form to our custom field formatter we only need to use the 'settings' parameter in the field formatter declaration (in hook_field_formatter_info()) and a few hooks.
The purpose of this Drupal 8’s snippet is to learn how to render a form programmatically in Drupal 8.
The purpose of this Drupal 8’s snippet is to enable the configuration of some of the node properties in view modes via interface.
The objective of this snippet is to teach you how to change the theme of your portal through Drush with vset.
The objective of this snippet is to enable you to render an image with code using a Drupal image style.
The objective of this snippet is to show if a table exists in the system and to create one if it does not already exist.
In this snippet we will reset the Drupal administrative user password using a Drush command
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.
Eliminate the possibility of completely resizing the texts. Take out the “grippies” of Drupal just like the resizing of the html component.
It lets to create a customized presentation where we are able to add and organize files.