You are here

function _hosting_get_platforms in Hosting 5

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \_hosting_get_platforms()
  2. 7.4 platform/hosting_platform.module \_hosting_get_platforms()
  3. 7.3 platform/hosting_platform.module \_hosting_get_platforms()

Small helper function to get platforms.

4 calls to _hosting_get_platforms()
hosting_package_update_5 in package/hosting_package.install
Denormalize package and package release node types
hosting_platform_hosting_summary in platform/hosting_platform.module
hosting_site_form in site/hosting_site.module
Implementation of hook_form
hosting_site_list in site/hosting_site.module
Display a list of created sites on the front page @TODO Add ability to filter by additional fields @TODO Add paging.

File

platform/hosting_platform.module, line 69
Platform node type definition

Code

function _hosting_get_platforms() {
  $return = array();
  $result = db_query("SELECT nid, title FROM {node} WHERE type='platform' AND status=1");
  while ($server = db_fetch_object($result)) {
    $return[$server->nid] = $server->title;
  }
  return $return;
}