Getting the complete route of a file 15/02/2016 Juan Jesús Trigo Drupal/PHP Senior developer In Drupal 7: // Load data file from fid. $file = file_load($fid); // Create external url from uri. $external_url = file_create_url($file->uri);
Others How to programmatically apply an image style in Drupal Antonio Jesús Mantis Benítez The objective of this snippet is to enable you to render an image with code using a Drupal image style. Read article How to programmatically apply an image style in Drupal La Drupalera ajmantis
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
Forms The obligatory nature of fields Diego Marrufo Rodríguez In this snippet we will mark the obligatory fields present as non-obligatory, and it will be under the condition that the user actually has the role of administrator. Read article The obligatory nature of fields La Drupalera dimaro