You are here

function google_adwords_field_schema in Google AdWords Conversion Tracking 7.2

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

Implements hook_field_schema().

File

./google_adwords.install, line 36
Install, update, and uninstall functions for the Google Adwords module.

Code

function google_adwords_field_schema($field) {
  return array(
    'columns' => array(
      'conversion_id' => array(
        'description' => 'The conversion id.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'not null' => FALSE,
      ),
      'conversion_language' => array(
        'description' => 'The conversion language.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'not null' => FALSE,
      ),
      'conversion_format' => array(
        'description' => 'The conversion format.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'not null' => FALSE,
      ),
      'conversion_color' => array(
        'description' => 'The conversion color.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'not null' => FALSE,
      ),
      'conversion_label' => array(
        'description' => 'The conversion label.',
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'conv_id' => array(
        'conversion_id',
      ),
    ),
  );
}