location.author-pane.inc in Author Pane 6
Same filename and directory in other branches
Provides a preprocess function on behalf of the location module.
File
modules/location.author-pane.incView source
<?php
/**
* @file
* Provides a preprocess function on behalf of the location module.
*/
/**
* Implementation of hook_preprocess_author_pane().
*/
function location_preprocess_author_pane(&$variables) {
$account_id = $variables['account']->uid;
if ($account_id != 0) {
$account = $variables['account'];
if (function_exists('location_display') && variable_get('location_display_location', 1) && isset($account->locations) && count($account->locations)) {
$settings = variable_get('location_settings_user', array());
$location = location_display($settings, $account->locations);
$variables['location_user_location'] = $location['#value'];
}
}
}
Functions
Name | Description |
---|---|
location_preprocess_author_pane | Implementation of hook_preprocess_author_pane(). |