You are here

function abt_update_7001 in Access By Term 7

File

./abt.install, line 27
abt.install Install, update and uninstall functions for the ABT module.

Code

function abt_update_7001() {
  $schema['abt_map'] = array(
    'description' => 'Holds the list of fieldnames which will control node access.',
    'fields' => array(
      'field_name' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The field name.',
        'translatable' => FALSE,
      ),
      'ctrl_view_access' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Whether this field controls the view access.',
      ),
      'ctrl_update_access' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Whether this field controls the update access.',
      ),
      'ctrl_delete_access' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Whether this field controls the delete access.',
      ),
    ),
  );
  db_create_table('abt_map', $schema['abt_map']);
}