function twitter_post_field_extra_fields in Twitter 7.5
Implementation of hook_field_extra_fields().
File
- twitter_post/
twitter_post.module, line 271 - Hook implementations for twitter_post module.
Code
function twitter_post_field_extra_fields() {
$types = variable_get('twitter_post_types', array());
$extra = array();
foreach ($types as $type) {
$extra['node'][$type] = array(
'form' => array(
'twitter' => array(
'label' => t('Twitter post'),
'description' => t('Optionally post to Twitter.'),
'weight' => 1,
),
),
);
}
return $extra;
}