You are here

function tca_schema_fields in Token Content Access 7

Helper function that defines the Token Content Access database fields.

Return value

array An array with the field specifications, keyed by the field name.

3 calls to tca_schema_fields()
tca_modules_enabled in ./tca.module
Implements hook_modules_enabled().
tca_modules_uninstalled in ./tca.module
Implements hook_modules_uninstalled().
tca_schema_alter in ./tca.module
Implements hook_schema_alter().

File

./tca.module, line 32
The Token Content Access module file.

Code

function tca_schema_fields() {
  $fields = array(
    'tca_active' => array(
      'description' => 'Specifies whether or not Token Content Access is active.',
      'type' => 'int',
      'default' => NULL,
    ),
    'tca_token' => array(
      'description' => 'The tca token value.',
      'type' => 'text',
      'default' => NULL,
      'size' => 'normal',
    ),
  );
  return $fields;
}