You are here

function hosting_site_query_site_not_deleted_alter in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 site/hosting_site.module \hosting_site_query_site_not_deleted_alter()

Implements hook_query_TAG_alter() for the 'site_not_deleted' tag.

Ensures that only non-deleted sites are returned in the query.

See also

hosting_get_site_by_url()

File

site/hosting_site.module, line 617
Contains hook implementations for Hosting site module.

Code

function hosting_site_query_site_not_deleted_alter(QueryAlterableInterface $query) {
  $query
    ->join('hosting_site', 'site', 'site.nid = node.nid');
  $query
    ->condition('site.status', HOSTING_SITE_DELETED, '!=');
}