You are here

function aet_insert_schema in Advanced Entity Tokens 7

Implementation of hook_schema().

Return value

Array The Schema required for AET Insert to work.

File

aet_insert/aet_insert.install, line 9

Code

function aet_insert_schema() {
  $schema['aet_insert'] = array(
    'description' => 'The base table for AET Insert.',
    'fields' => array(
      'entity_type' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'field_name' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 125,
        'default' => '',
      ),
    ),
  );
  return $schema;
}