Web Tips

A blog for web developers
  • Home
  • PHP
  • Symfony
  • WordPress

Home / Drupal

Articles tagged with "Drupal"

Include Javascript or CSS to a Drupal Form using #attached

May 23, 2014 PHP Drupal, Forms, jQuery

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…


Update a Drupal Module’s Database Schema Using hook_update_N

April 18, 2014 PHP Drupal, Drush

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

April 4, 2014 PHP Drupal, 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…


Follow us on Twitter
©2020 Calc Hub, LLC | Privacy Policy