You are here

function _hosting_package_site_has_module in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 package/hosting_package.instance.inc \_hosting_package_site_has_module()

Helper to determine if a particular site has a module installed.

File

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

Code

function _hosting_package_site_has_module($node, $module) {
  $package = hosting_package_instance_load(array(
    'rid' => $node->nid,
    'p.short_name' => $module,
  ));
  if (!is_object($package)) {
    return FALSE;
  }
  return $package->status;
}