function community_tags_get_content_type_settings in Community Tags 6.2
3 calls to community_tags_get_content_type_settings()
- community_tags_node_type_form_submit in ./
community_tags.admin.inc - community_tags_preprocess_node in ./
community_tags.module - Implementation of hook_preprocess_type(). Allow overrides of node terms display.
- _community_tags_node_type_form_alter in ./
community_tags.admin.inc - "Private" implementation of hook_form_alter().
File
- ./
community_tags.module, line 364 - Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
Code
function community_tags_get_content_type_settings($type = NULL) {
$settings = variable_get('community_tags_content_types', array());
$defaults = array(
'community_tags_terms_page' => 'none',
'community_tags_terms_teaser' => 'none',
'ct_links_limit' => 8,
);
if ($type) {
return isset($settings[$type]) ? array_merge($defaults, $settings[$type]) : $defaults;
}
else {
return $settings;
}
}