function tweetbutton_field_schema in Tweet Button 7.2
Implements hook_field_schema().
File
- ./
tweetbutton.install, line 7
Code
function tweetbutton_field_schema($field) {
switch ($field['type']) {
case 'tweetbutton':
$columns = array(
'text' => array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
),
'account' => array(
'type' => 'varchar',
'length' => 32,
'not null' => FALSE,
),
);
break;
}
return array(
'columns' => $columns,
'indexes' => array(
'account' => array(
'account',
),
'text' => array(
'text',
),
),
);
}