You are here

function og_insert_group in Organic groups 5.8

Same name and namespace in other branches
  1. 5 og.module \og_insert_group()
  2. 5.2 og.module \og_insert_group()
  3. 5.3 og.module \og_insert_group()
  4. 5.7 og.module \og_insert_group()
  5. 6.2 og.module \og_insert_group()
  6. 6 og.module \og_insert_group()
2 calls to og_insert_group()
og_nodeapi in ./og.module
Implementation of hook_nodeapi().
og_update_group in ./og.module

File

./og.module, line 1315

Code

function og_insert_group($node) {
  $sql = "INSERT INTO {og} (nid, theme, selective, description, register, directory, language, private) VALUES (%d, '%s', %d, '%s', %d, %d, '%s', %d)";
  db_query($sql, $node->nid, $node->og_theme, $node->og_selective, $node->og_description, $node->og_register, $node->og_directory, $node->og_language, $node->og_private);
}