You are here

phantomjs_capture_field.install in PhantomJS Capture 7

Defines the schema used by the slide preview filed.

File

phantomjs_capture_field/phantomjs_capture_field.install
View source
<?php

/**
 * @file
 * Defines the schema used by the slide preview filed.
 */

/**
 * Implements hook_field_schema().
 */
function phantomjs_capture_field_field_schema($field) {
  $columns = array(
    // Store the URL entered.
    'url' => array(
      'type' => 'text',
      'not null' => TRUE,
    ),
    // Store the URI to the image captured (screen shot).
    'uri' => array(
      'type' => 'text',
      'not null' => TRUE,
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => array(),
  );
}

Functions