If you’re creating a form using Drupal and find you want to add some javascript or CSS then you can use the “#attached” attribute to do so. Using “#attached” you can include local javascript/CSS files, external javascript/CSS files, or inline styles and scripts. more…
Articles tagged with "Drupal"
Update a Drupal Module’s Database Schema Using hook_update_N
Drupal allows a module developer to easily define a database schema using hook_schema but this won’t work if you need to update the database schema during an update to the module. Fortunately, there is a nice hook in Drupal called hook_update_N that you can place in your module’s .install file. more…
Reset Password for Users in Drupal Using Drush
A lost password can be a real headache, especially if it’s the admin account for an installation. It is possible to login without credentials or reset a password for any user from the command line using drush. more…