Skip to content

Instantly share code, notes, and snippets.

@damiankloip
Created April 13, 2012 09:06
Show Gist options
  • Save damiankloip/2375268 to your computer and use it in GitHub Desktop.
Save damiankloip/2375268 to your computer and use it in GitHub Desktop.
function views_field_view_views_data_alter(&$data) {
$data['views']['view'] = array(
'title' => t('View'),
'help' => t('Embed a view as field. This can cause slow performance, so enable some caching.'),
'field' => array(
'handler' => 'views_field_view_handler_field_view',
),
);
$data['views']['view_field'] = array(
'title' => t('View'),
'help' => t('Embed a view as field. This can cause slow performance, so enable some caching.'),
'area' => array(
'help' => t('Embed a view in an Area, such as Header, Footer, Empty Text.'),
'handler' => 'views_field_view_handler_field_view',
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment