function nodereference_count_field_info in Nodereference Count 7
Same name and namespace in other branches
- 6 nodereference_count.module \nodereference_count_field_info()
Implements hook_field_info().
File
- ./
nodereference_count.module, line 11 - Defines a field type for counting the references to a node.
Code
function nodereference_count_field_info() {
return array(
'nodereference_count' => array(
'label' => t('Node reference count'),
'description' => t('Store node reference count data in the database.'),
'instance_settings' => array(
'counted_reference_fields' => array(),
'count_only_published' => TRUE,
),
'default_widget' => 'nodereference_count_widget',
'default_formatter' => 'nodereference_count_formatter_default',
),
);
}