You are here

function nr_fields_views_data in Node registration 7

Implements hook_views_data_alter().

File

submodules/nr_fields/nr_fields.module, line 119

Code

function nr_fields_views_data() {

  // Field: Private fields.
  $data['node_registration']['nr_fields_private_fields'] = array(
    'title' => t('Private fields'),
    'help' => t('When rendered, this field will be replaced by all the private fields of the node. No configuration is required. Please be aware this only works for listings operating on a single node (eg. by using the "Node registration: Node nid" contextual filter).'),
    'field' => array(
      'field' => 'registration_id',
      'group' => t('Node registration'),
      'handler' => 'views_handler',
    ),
  );
  return $data;
}