function homebox_pre_build_user in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.module \homebox_pre_build_user()
Helper function for performing operations prior to rendering a Homebox that is set as a user profile tab
Parameters
$page: A page object
$user: A user object
1 string reference to 'homebox_pre_build_user'
- homebox_menu in ./
homebox.module - Implementation of hook_menu().
File
- ./
homebox.module, line 461 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_pre_build_user($page, $user) {
drupal_set_title($user->name);
$output = homebox_build($page);
// Only return if output is available
// Certain Homeboxes print instead of return
if ($output) {
return $output;
}
}