function tweetbutton_content_extra_fields in Tweet Button 6
Implementation of hook_content_extra_fields.
File
- ./
tweetbutton.module, line 232
Code
function tweetbutton_content_extra_fields($type) {
$types = variable_get('tweetbutton_node_types', array(
'story',
));
$location = variable_get('tweetbutton_node_location', array(
'full',
));
if (!empty($types[$type]) && empty($location['links'])) {
$extras['tweetbutton_widget'] = array(
'label' => t('Tweetbutton'),
'description' => t('The Tweetbutton widget'),
'weight' => variable_get('tweetbutton_node_weight', -5),
);
return $extras;
}
}