function tweet_feed_field_schema in Tweet Feed 7.2
Same name and namespace in other branches
- 7.3 tweet_feed.install \tweet_feed_field_schema()
Implements hook_field_schema().
File
- ./
tweet_feed.install, line 123
Code
function tweet_feed_field_schema($field) {
if ($field['type'] == 'tweet_feed_user_mention') {
$schema['columns']['tweet_feed_mention_name'] = array(
'description' => 'Name of user mentioned in tweet',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'sortable' => FALSE,
'views' => TRUE,
);
$schema['columns']['tweet_feed_mention_screen_name'] = array(
'description' => 'Screen Name of user mentioned in tweet',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'sortable' => FALSE,
'views' => TRUE,
);
$schema['columns']['tweet_feed_mention_id'] = array(
'description' => 'ID of user mentioned in tweet.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'sortable' => FALSE,
'views' => TRUE,
);
}
return $schema;
}