function views_content_context_view_settings_form

cis7 view.inc views_content_context_view_settings_form($form, &$form_state)
cle7 view.inc views_content_context_view_settings_form($form, &$form_state)
elmsmedia7 view.inc views_content_context_view_settings_form($form, &$form_state)
icor7 view.inc views_content_context_view_settings_form($form, &$form_state)
meedjum_blog7 view.inc views_content_context_view_settings_form($form, &$form_state)
mooc7 view.inc views_content_context_view_settings_form($form, &$form_state)
1 string reference to 'views_content_context_view_settings_form'
view.inc in sites/all/modules/ulmus/ctools/views_content/plugins/contexts/view.inc
Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.

File

sites/all/modules/ulmus/ctools/views_content/plugins/contexts/view.inc, line 122
Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.

Code

function views_content_context_view_settings_form($form, &$form_state) {
  $conf = $form_state['conf'];
  $views = views_get_applicable_views('returns context');
  foreach ($views as $data) {
    list($view, $id) = $data;
    $title = views_content_get_display_title($view, $id, 'admin_title');
    $options[$view->name . ':' . $id] = $title;
  }

  if (!empty($options)) {
    natcasesort($options);
    $form['view'] = array(
      '#type' => 'select',
      '#options' => $options,
      '#title' => t('View'),
    );
  }
  else {
    $form['view'] = array(
      '#value' => '<p>' . t('There are currently no views with Context displays enabled. You should go to the view administration and add a Context display to use a view as a context.') . '</p>',
    );
  }

  return $form;
}
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.