You are here

function apps_manage_page in Apps 7

Callback for listing of installed apps

1 call to apps_manage_page()
apps_block_view in ./apps.module
Implements hook_block_view().
1 string reference to 'apps_manage_page'
apps_menu in ./apps.module
Implements hook_menu().

File

./apps.pages.inc, line 100
The page callbacks for the Apps module.

Code

function apps_manage_page($server) {
  apps_include('manifest');
  $element = array(
    '#theme' => 'apps_manage_page',
  );

  // find all installed apps
  try {
    $apps = apps_apps($server, array(
      "installed" => TRUE,
    ), TRUE);
    $element['apps'] = $apps;
  } catch (Exception $e) {
    drupal_set_message(t("There was the following error: @error", array(
      '@error' => $e
        ->getMessage(),
    )), 'warning');
  }
  return $element;
}