function views_plugin_display::accept_attachments
Same name in other branches
- 7.x-3.x plugins/views_plugin_display.inc \views_plugin_display::accept_attachments()
Can this display accept attachments?
File
-
plugins/
views_plugin_display.inc, line 325
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
function accept_attachments() {
if (empty($this->definition['accept attachments'])) {
return FALSE;
}
if (!empty($this->view->argument) && $this->get_option('hide_attachment_summary')) {
foreach ($this->view->argument as $argument_id => $argument) {
if ($argument->needs_style_plugin() && empty($argument->argument_validated)) {
return FALSE;
}
}
}
return TRUE;
}