function twitter_post_content_extra_fields in Twitter 6.5
Same name and namespace in other branches
- 6.3 twitter_post/twitter_post.module \twitter_post_content_extra_fields()
- 6.4 twitter_post/twitter_post.module \twitter_post_content_extra_fields()
Implementation of hook_content_extra_fields().
Let's the Twitter field be positioned within the edit node form.
File
- twitter_post/
twitter_post.module, line 103 - Hook implementations for twitter_post module.
Code
function twitter_post_content_extra_fields($type) {
$allowed_types = variable_get('twitter_post_types', array());
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;
}