function content_profile_views_data_alter in Content Profile 6
Implementation of hook_views_data_alter().
File
- views/
content_profile.views.inc, line 11 - content_profile.views.inc Provides support for the Views module.
Code
function content_profile_views_data_alter(&$data) {
// node relationship for profiles
$data['users']['content_profile_rel'] = array(
'group' => t('Node'),
'title' => t('Content Profile'),
'help' => t('Create a relationship to a content profile of the user.'),
'relationship' => array(
'handler' => 'content_profile_views_handler_relationship',
'base' => 'node',
'base field' => 'uid',
'label' => t('Content Profile'),
),
);
}