6. Blocks have new, more
meaningful CSS IDs
Search form
Old CSS ID (Drupal 6): #block-search-0
New CSS ID (Drupal 7): #block-search-form
User login
Old CSS ID (Drupal 6): block-user-0
New CSS ID (Drupal 7): block-user-login
7. The clear-block CSS class
has been renamed to clearfix
Drupal 6
.clear-block
Drupal 7
.clearfix
23. Function names must match
theme name
You may no longer use phptemplate_function
24. CSS and JavaScript files
must be specified in .info file
No more automatic style.css
No more automatic script.js
25. Granular rendering in node and
user templates
<?php
// Hide the comments and links to render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
?>
26. Drupal 7 outputs RDFa requiring a
change at top of page.tpl.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php print $language->language ?>"
dir="<?php print $language->dir ?>"
<?php print $rdf_namespaces ?>>
<head profile="<?php print $grddl_profile ?>">