You are here

function apps_update_page in Apps 7

Callback for listing of installed apps that have available updates

1 string reference to 'apps_update_page'
apps_menu in ./apps.module
Implements hook_menu().

File

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

Code

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

  // find all installed apps
  try {
    $apps = apps_apps($server, array(
      "upgradeable" => 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;
}