User login

load

Export and re-import a database with Drush and the command line

These are run from the project's web root, example/web, so that drush can run, but the database itself is stored outside the web root, example/db.

On the export side:

drush sql-dump > ../db/development.sql

On the import side:

drush sql-connect < ../db/development.sql

expands to:

mysql -hlocalhost -uexample -pyMsx2rIP drupal-example < ../db/development.sql

Add CSS to a Drupal page through template.php

http://api.drupal.org/api/function/drupal_add_css/6

Adding styles through the API: How to use the drupal_add_css function to add a CSS file
http://drupal.org/node/225868

Similar for JavaScript:

Syndicate content