You are here

function _hashtags_node_check_node_type in Hashtags 7.2

Same name and namespace in other branches
  1. 7 hashtags.module \_hashtags_node_check_node_type()

Check whether a content type can be used in a hashtag.

2 calls to _hashtags_node_check_node_type()
hashtags_form_alter in ./hashtags.module
Implementation of hook_form_alter().
hashtags_node_load in ./hashtags.module
Implementation of hook_node_load().

File

./hashtags.module, line 243

Code

function _hashtags_node_check_node_type($node) {

  // Fetch information about the forum field.
  $field = field_info_instance('node', 'field_hashtags', $node->type);
  return is_array($field);
}