You are here

function feeds_imagegrabber_schema in Feeds Image Grabber 6

Same name and namespace in other branches
  1. 7 feeds_imagegrabber.install \feeds_imagegrabber_schema()

Implementation of hook_schema().

File

./feeds_imagegrabber.install, line 11
Schema definitions install/update/uninstall hooks.

Code

function feeds_imagegrabber_schema() {
  $schema['feeds_imagegrabber'] = array(
    'description' => t('stores the settings of feeds image grabber per feed node'),
    'fields' => array(
      'feed_nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The feed nid for which the feeds image grabber is enabled'),
      ),
      'enabled' => array(
        'description' => t('Current enabled status for this feed nid'),
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'unsigned' => TRUE,
      ),
      'id_class' => array(
        'description' => t('Identifying tag attribute an ID (1) or Class(2) or nothing (0)?'),
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'unsigned' => TRUE,
      ),
      'id_class_desc' => array(
        'description' => t('Identifying tag attribute value.'),
        'type' => 'varchar',
        'length' => '128',
      ),
      'feeling_lucky' => array(
        'description' => t('Get the first image from between the tags or not'),
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'unsigned' => TRUE,
      ),
      'exec_time' => array(
        'description' => t('Percentage of PHP maximum execution time to utilize for grabbing image for each feed item.'),
        'type' => 'int',
        'not null' => TRUE,
        'default' => 10,
        'unsigned' => TRUE,
      ),
    ),
    'primary key' => array(
      'feed_nid',
    ),
  );
  return $schema;
}