Permitted values in a select field type 29/02/2016 Juan Jesús Trigo Drupal/PHP Senior developer In Drupal 7: // Load info field. $info_field = field_info_field('field_name'); // Get allowed values from select field. $options = list_allowed_values($info_field); In Drupal 6: $allowed_values = content_allowed_values(content_fields('field_name'));
Fields Eliminating text resizing Juan Jesús Trigo Eliminate the possibility of completely resizing the texts. Take out the “grippies” of Drupal just like the resizing of the html component. Read article Eliminating text resizing La Drupalera jjtrigo
Users Reset the administrative user password with Drush in Drupal 7 Antonio Jesús Mantis Benítez In this snippet we will reset the Drupal administrative user password using a Drush command Read article Reset the administrative user password with Drush in Drupal 7 La Drupalera ajmantis
Others Testing and creating a table Juan Jesús Trigo 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. Read article Testing and creating a table La Drupalera jjtrigo