function google_adwords_schema in Google AdWords Conversion Tracking 6
Implementation of hook_schema().
File
- ./
google_adwords.install, line 43
Code
function google_adwords_schema() {
$schema['google_adwords'] = array(
'description' => t('Stores Google AdWords for nodes.'),
'primary key' => array(
'vid',
),
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('The {node}.nid to associated with the Google AdWords.'),
),
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('Primary Key: The {node}.vid associated with the Google AdWords.'),
),
'enabled' => array(
'type' => 'int',
'description' => t('Useful to turn on and off Google AdWords on a per node basis.'),
'not null' => TRUE,
'unsigned' => TRUE,
'default' => 0,
),
'label' => array(
'type' => 'varchar',
'default' => '',
'length' => 255,
),
'format' => array(
'type' => 'varchar',
'default' => '',
'length' => 10,
),
),
);
return $schema;
}