You are here

function img_assist_schema in Image Assist 6.2

Same name and namespace in other branches
  1. 6 img_assist.install \img_assist_schema()

Implementation of hook_schema().

File

./img_assist.install, line 7

Code

function img_assist_schema() {
  $schema['img_assist_map'] = array(
    'description' => t('Stores references of image files to content.'),
    'fields' => array(
      'nid' => array(
        'description' => t('The {node}.nid of the content referencing the image file.'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'iid' => array(
        'description' => t('The {image}.nid of the image file referenced by the content.'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'nid',
      'iid',
    ),
  );
  return $schema;
}