function views_view_has_form_elements

Determine whether the view has form elements.

Returns TRUE if the passed-in view contains handlers with views form implementations, FALSE otherwise.

3 calls to views_view_has_form_elements()
template_preprocess_views_view in theme/theme.inc
Preprocess the primary theme implementation for a view.
view::execute in includes/view.inc
Execute the view's query.
view::render in includes/view.inc
Render this view for a certain display.

File

./views.module, line 1927

Code

function views_view_has_form_elements($view) {
    foreach ($view->field as $field) {
        if (property_exists($field, 'views_form_callback') || method_exists($field, 'views_form')) {
            return TRUE;
        }
    }
    $area_handlers = array_merge(array_values($view->header), array_values($view->footer));
    $empty = empty($view->result);
    foreach ($area_handlers as $area) {
        if (method_exists($area, 'views_form') && !$area->views_form_empty($empty)) {
            return TRUE;
        }
    }
    return FALSE;
}