function twitter_post_content_extra_fields in Twitter 6.4
Same name and namespace in other branches
- 6.5 twitter_post/twitter_post.module \twitter_post_content_extra_fields()
- 6.3 twitter_post/twitter_post.module \twitter_post_content_extra_fields()
Implementation of hook_content_extra_fields().
File
- twitter_post/
twitter_post.module, line 144 - Main hooks for twitter post module
Code
function twitter_post_content_extra_fields($type) {
$allowed_types = variable_get('twitter_types', array(
'story' => 'story',
'blog' => 'blog',
));
if (empty($allowed_types[$type])) {
return;
}
$extras['twitter'] = array(
'label' => t('Twitter'),
'description' => t('Form to send new content to twitter'),
'weight' => 100,
);
return $extras;
}