function hosting_package_instances_load in Hosting 6.2
Same name and namespace in other branches
- 5 package/hosting_package.instance.inc \hosting_package_instances_load()
- 7.4 package/hosting_package.instance.inc \hosting_package_instances_load()
- 7.3 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.
3 calls to hosting_package_instances_load()
- hosting_get_profiles in package/
hosting_package.module - hosting_get_profile_platforms in package/
hosting_package.module - hosting_task_migrate_form in migrate/
hosting_migrate.module - Implementation of hook_form().
File
- package/
hosting_package.instance.inc, line 140 - API for mapping packages to various Hosting node types
Code
function hosting_package_instances_load($param) {
return _hosting_package_instances_load($param, TRUE);
}