function views_plugin_display::accept_attachments

Can this display accept attachments?

File

plugins/views_plugin_display.inc, line 410

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

public 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) {
            if ($argument->needs_style_plugin() && empty($argument->argument_validated)) {
                return FALSE;
            }
        }
    }
    return TRUE;
}