You are here

function flag_actions_schema in Flag 6

Same name and namespace in other branches
  1. 6.2 flag_actions.install \flag_actions_schema()
  2. 7.3 flag_actions.install \flag_actions_schema()
  3. 7.2 flag_actions.install \flag_actions_schema()

Implementation of hook_schema().

File

./flag_actions.install, line 25
Flag actions install file.

Code

function flag_actions_schema() {
  $schema = array();
  $schema['flag_actions'] = array(
    'fields' => array(
      'aid' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'disp-width' => '5',
      ),
      'fid' => array(
        'type' => 'int',
        'size' => 'small',
        'not null' => FALSE,
        'disp-width' => '5',
      ),
      'event' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => FALSE,
      ),
      'threshold' => array(
        'type' => 'int',
        'size' => 'small',
        'not null' => FALSE,
        'disp-width' => '5',
      ),
      'callback' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
      'parameters' => array(
        'type' => 'text',
        'size' => 'big',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}