function apps_preprocess_apps_catalog_page in Apps 7
Implements hook_preprocess_apps_update_page().
File
- theme/
apps.theme.inc, line 259 - Provides theme functions for apps module.
Code
function apps_preprocess_apps_catalog_page(&$vars) {
$vars['title'] = $vars['server']['title'];
$vars['apps_render'] = array();
foreach ($vars['apps'] as $machine_name => $info) {
$vars['apps_render'][$info['name']] = array(
'description' => check_plain($info['description']),
'conflicts' => array(),
'name' => check_plain($info['name']),
);
if ($conflicts = apps_app_find_conflicts($info)) {
foreach ($conflicts as $conflict) {
if ($conflict['server'] == $vars['server']['name']) {
$vars['apps_render'][$info['name']]['conflicts'][] = check_plain($vars['apps'][$conflict['name']]['name']);
}
}
}
}
ksort($vars['apps_render']);
}