You are here

function spaces_announce_primary_gid in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces_announce/spaces_announce.module \spaces_announce_primary_gid()

Retrieve the primary gid for a node.

Parameters

$nid: The node id of the item

Return value

Gid ie node id of the primary group.

2 calls to spaces_announce_primary_gid()
spaces_announce_form_alter in spaces_announce/spaces_announce.module
Implementation of hook_form_alter.
spaces_announce_nodeapi in spaces_announce/spaces_announce.module
Implementation of hook_nodeapi

File

spaces_announce/spaces_announce.module, line 249

Code

function spaces_announce_primary_gid($nid) {
  return db_result(db_query('SELECT gid FROM {spaces_announce} WHERE nid = %d', $nid));
}