You are here

function boost_get_domains in Boost 6

Get domains the node is currently published to

Parameters

$node: node object

Return value

array array('$gid' => $gid)

1 call to boost_get_domains()
boost_get_base_urls in ./boost.module
Get all base url's where this node can appear

File

./boost.module, line 1202
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_get_domains(&$node) {
  if (empty($node->nid)) {
    return array();
  }
  $domains = array();
  $result = db_query("SELECT gid FROM {domain_access} WHERE nid = %d", $node->nid);
  while ($row = db_fetch_array($result)) {
    $gid = $row['gid'];
    $domains[$gid] = $gid;
  }
  return $domains;
}