I have a custom theme and a custom module. The module shows users. Every user has its specific image (that can be uploaded, changed). The location/name of this file is in the database.
I have an template with specific layout for that page: page--uspage.tpl.php In this page, I need the location from the database when I access uspage.
$items['uspages'] = array( 'title' => 'User pages', //page title 'description' => 'User pages', 'page callback' => 'show_uspages' ); $items['uspage/%'] = array( 'title' => 'User page', 'description' => 'User page detail', 'page callback' => 'show_uspage', 'page arguments' => array(1), 'access callback' => TRUE, 'type' => MENU_CALLBACK, );
I have a lot of other pages that doesn't need that. So I can't use preprocess_page.
What's the easiest and best way to pass an array with the backgroundinformation from the function show_uspage to page--uspage.tpl.php ?