This document contains information about using Drupal presented by Chris Wu. It discusses using Drupal as a designer, programmer, and web administrator. It provides tips on using themes, modules, Views, hooks, databases, performance optimization, and command line tools like Drush.
25. D7UX
• Our UX Principles:
1. Make the most frequent tasks easy and less
frequent tasks achievable.
2. Design for the 80%
3. Privilege the Content Creator
4. Make the default settings smart
40. DATABASE
• Database abstraction layer
– Built on top of the PDO library.
– Different driver for each db type
• MySQL, PostgresSQL, SQLite, MongoDB*, SQL Server*
<?php
// Create an object of type SelectQuery and directly
// add extra detail to this query object: a condition, fields and a range
$query = db_select('users', 'u')
->condition('u.uid', 0, '<>')
->fields('u', array('uid', 'name', 'status', 'created', 'access'))
->range(0, 50);
?>