You are here

function hosting_package_instances_load in Hosting 7.3

Same name and namespace in other branches
  1. 5 package/hosting_package.instance.inc \hosting_package_instances_load()
  2. 6.2 package/hosting_package.instance.inc \hosting_package_instances_load()
  3. 7.4 package/hosting_package.instance.inc \hosting_package_instances_load()

Get an array of all package instance objects that match given parameters.

Parameters

mixed $param: If $param is an integer it will be matched against an instance iid. If $param is an array then the key/value pairs will be used as a WHERE clause in the form "WHERE key0 = value0 AND ... AND keyN = valueN". Both the keys and values of the $param array must be strings.

Return value

mixed Returns an array of instance objects keyed by the instance iid. If there are no matches an empty array will be returned. If there was an error FALSE will be returned.

4 calls to hosting_package_instances_load()
drush_hosting_package_pre_hosting_task in package/hosting_package.drush.inc
@file Drush include for the package management module.
hosting_get_profiles in package/hosting_package.module
Return a list of available install profiles.
hosting_get_profile_platforms in package/hosting_package.module
@todo document this function
hosting_task_migrate_form in migrate/hosting_migrate.module
Implements hook_form().

File

package/hosting_package.instance.inc, line 177
API for mapping packages to various Hosting node types

Code

function hosting_package_instances_load($param) {
  return _hosting_package_instances_load($param, TRUE);
}