diff options
Diffstat (limited to 'includes/theme.inc')
-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']); } /** |