diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-19 01:30:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-19 01:30:07 +0000 |
commit | 079dca8e17b47cfee0a80f4a683bb511c8fe5505 (patch) | |
tree | 8006b60dc5719ed42ff6be0f8645bb8da637a037 /includes | |
parent | 29a574e08252d3fe7e1e805abbb6373a2cddba54 (diff) | |
download | brdo-079dca8e17b47cfee0a80f4a683bb511c8fe5505.tar.gz brdo-079dca8e17b47cfee0a80f4a683bb511c8fe5505.tar.bz2 |
- Patch #608036 by effulgentsia: add content_attributes() variable for tpl files, so RDF can be implemented better.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index e8c51d31c..bcceb3fb5 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2078,9 +2078,11 @@ function template_preprocess(&$variables, $hook) { // Initialize html class attribute for the current hook. $variables['classes_array'] = array($hook); - // Initialize attributes for the top-level template entity and its title. + // Initialize attributes for the top-level template entity and its title and + // content. $variables['attributes_array'] = array(); $variables['title_attributes_array'] = array(); + $variables['content_attributes_array'] = array(); // Set default variables that depend on the database. $variables['is_admin'] = FALSE; @@ -2107,9 +2109,10 @@ function template_process(&$variables, $hook) { // Flatten out classes. $variables['classes'] = implode(' ', $variables['classes_array']); - // Flatten out attributes and title_attributes. + // Flatten out attributes, title_attributes, and content_attributes. $variables['attributes'] = drupal_attributes($variables['attributes_array']); $variables['title_attributes'] = drupal_attributes($variables['title_attributes_array']); + $variables['content_attributes'] = drupal_attributes($variables['content_attributes_array']); } /** |