function commons_bw_node_auto_title_instance in Drupal Commons 7.3
Helper function to determine whether Commons_BW should define a title field instance on behalf of a content type.
Parameters
$node_type: The type of the node to check auto title settings for.
Return value
boolean The value of the auto title setting if available, TRUE otherwise.
2 calls to commons_bw_node_auto_title_instance()
- commons_bw_field_default_field_instances in modules/
commons/ commons_bw/ commons_bw.features.field_instance.inc - Implements hook_field_default_field_instances().
- commons_bw_system_info_alter in modules/
commons/ commons_bw/ commons_bw.module - Implements hook_system_info_alter().
File
- modules/
commons/ commons_bw/ commons_bw.module, line 378
Code
function commons_bw_node_auto_title_instance($node_type) {
$commons_groups_entity_types = commons_groups_get_group_content_entity_types();
return isset($commons_groups_entity_types['node'][$node_type]['auto_title_instance']) ? $commons_groups_entity_types['node'][$node_type]['auto_title_instance'] : TRUE;
}