function community_tags_content_extra_fields in Community Tags 6.2
Same name and namespace in other branches
- 6 community_tags.module \community_tags_content_extra_fields()
- 7 community_tags.module \community_tags_content_extra_fields()
Implement CCK's hook_content_extra_fields().
File
- ./
community_tags.module, line 341 - Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
Code
function community_tags_content_extra_fields($type_name) {
$extra = array();
if (variable_get('community_tags_display_' . $type_name, COMMUNITY_TAGS_MODE_TAB) == COMMUNITY_TAGS_MODE_INLINE) {
$extra['community_tags'] = array(
'label' => t('Community Tags'),
'description' => t('Community Tags Form'),
'weight' => 100,
);
}
return $extra;
}