You are here

function og_access_schema in Organic groups 6.2

Same name and namespace in other branches
  1. 7.2 og_access/og_access.install \og_access_schema()
  2. 7 og_access/og_access.install \og_access_schema()

Definition of hook_schema();

File

modules/og_access/og_access.install, line 6

Code

function og_access_schema() {
  $schema = array();
  $schema['og_access_post'] = array(
    'description' => 'Global properties for group posts.',
    'fields' => array(
      'nid' => array(
        'description' => "The post's {node}.nid.",
        'type' => 'int',
        'size' => 'normal',
        'not null' => TRUE,
      ),
      'og_public' => array(
        'description' => 'Is this a public or private post?',
        'type' => 'int',
        'size' => 'tiny',
        'default' => 1,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}