function og_load_group in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_load_group()
- 5.2 og.module \og_load_group()
- 5.3 og.module \og_load_group()
- 5.7 og.module \og_load_group()
- 6.2 og.module \og_load_group()
- 6 og.module \og_load_group()
2 calls to og_load_group()
- og_access_alter_nongroup_form in ./
og_access.module - og_nodeapi in ./
og.module - Implementation of hook_nodeapi().
File
- ./
og.module, line 1300
Code
function og_load_group(&$node) {
$sql = 'SELECT selective AS og_selective, description AS og_description, theme AS og_theme, register AS og_register, directory AS og_directory, notification AS og_notification, language AS og_language, private AS og_private FROM {og} WHERE nid = %d';
$result = db_query($sql, $node->nid);
$node = (object) array_merge((array) $node, (array) db_fetch_array($result));
$node->comment = COMMENT_NODE_DISABLED;
// we don't use comments on og nodes. technically not needed since we set this on node submit
}