function entityform_views_pre_view in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.module \entityform_views_pre_view()
Implements hook_views_pre_view().
This add all Fields for the Bundle to the View at runtime View Requirements 1. First argument must bundle machine name 2. All Fields will added if the if the display_id starts with "autofields_
File
- ./
entityform.module, line 1392 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Code
function entityform_views_pre_view(&$view, &$display_id, &$args) {
if ($view->base_table == 'entityform' && strpos($display_id, 'autofields_') === 0) {
$type = $view->args[0];
_entityform_view_add_all_fields($view, $display_id, $type);
}
return;
}