function views_view_has_form_elements

cis7 views.module views_view_has_form_elements($view)
cle7 views.module views_view_has_form_elements($view)
elmsmedia7 views.module views_view_has_form_elements($view)
icor7 views.module views_view_has_form_elements($view)
meedjum_blog7 views.module views_view_has_form_elements($view)
mooc7 views.module views_view_has_form_elements($view)

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

1 call to views_view_has_form_elements()
template_preprocess_views_view in sites/all/modules/ulmus/views/theme/theme.inc
Preprocess the primary theme implementation for a view.

File

sites/all/modules/ulmus/views/views.module, line 1745
Primarily Drupal hooks and global API functions to manipulate views.

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.