template_preprocess_profile_wrapper

Versions
6 – 7
template_preprocess_profile_wrapper(&$variables)

Process variables for profile-wrapper.tpl.php.

The $variables array contains the following arguments:

  • $content

See also

profile-wrapper.tpl.php

Code

modules/profile/profile.module, line 534

<?php
function template_preprocess_profile_wrapper(&$variables) {
  $variables['current_field'] = '';
  if ($field = arg(1)) {
    $variables['current_field'] = $field;
    // Supply an alternate template suggestion based on the browsable field.
    $variables['template_files'][] = 'profile-wrapper-'. $field;
  }
}
?>
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.