function twitter_last_tweet_field_field_schema in Twitter 7.5
Same name and namespace in other branches
- 7.6 twitter_last_tweet_field/twitter_last_tweet_field.install \twitter_last_tweet_field_field_schema()
Implements hook_field_schema().
File
- twitter_last_tweet_field/
twitter_last_tweet_field.install, line 11 - Install, update and uninstall functions for the twitter_last_tweet_field module.
Code
function twitter_last_tweet_field_field_schema($field) {
$columns = array(
'twitter_uid' => array(
'description' => 'The unique identifier of the {twitter_account}.',
'type' => 'int',
'unsigned' => TRUE,
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'empty_message' => array(
'description' => 'A message to show if there are no tweets for this account.',
'type' => 'varchar',
'length' => 140,
'not null' => TRUE,
),
'hide_extras' => array(
'description' => 'Optionally not load the default CSS and JS.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
);
$indexes = array(
'twitter_uid' => array(
'twitter_uid',
),
);
return array(
'columns' => $columns,
'indexes' => $indexes,
);
}