You are here

function drush_apps_installable_apps in Apps 7

Return a list of all apps available for installation.

1 call to drush_apps_installable_apps()
drush_apps_install in ./apps.drush.inc
Install an app, or list.

File

./apps.drush.inc, line 126
Apps module drush integration.

Code

function drush_apps_installable_apps() {
  module_load_include('inc', 'apps', 'apps.manifest');
  $apps_list = array();
  $servers = apps_servers();
  foreach ($servers as $server) {
    $apps = apps_apps($server);
    foreach ($apps as $key => $app) {
      if ($app['status'] == APPS_DISABLED || $app['status'] == APPS_INSTALLABLE) {
        $apps_list[$key] = $app['server']['name'];
      }
    }
  }
  return $apps_list;
}