You are here

function google_adwords_field_schema in Google AdWords Conversion Tracking 7

Same name and namespace in other branches
  1. 7.2 google_adwords.install \google_adwords_field_schema()

Implementation of hook_field_schema().

File

./google_adwords.install, line 10
Installation stuff for google adwords module.

Code

function google_adwords_field_schema($field) {
  return array(
    'columns' => array(
      'conversion_id' => array(
        'type' => 'int',
        'length' => 11,
        'not null' => TRUE,
      ),
      'label' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'value' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
      'format' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
      'color' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
      'language' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
    ),
  );
}