function _hashtags_node_check_node_type in Hashtags 7
Same name and namespace in other branches
- 7.2 hashtags.module \_hashtags_node_check_node_type()
Check whether a content type can be used in a hashtag.
File
- ./
hashtags.module, line 779
Code
function _hashtags_node_check_node_type($node) {
// Fetch information about the Hashtags field.
$field_name = variable_get('hashtags_terms_field', '');
$field = field_info_instance('node', $field_name, $node->type);
return is_array($field);
}