template_process

Versions
7
template_process(&$variables, $hook)

A default process function used to alter variables as late as possible.

Code

includes/theme.inc, line 2194

<?php
function template_process(&$variables, $hook) {
  // Flatten out classes.
  $variables['classes'] = implode(' ', $variables['classes_array']);

  // 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']);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.