function views_content_context_view_get_children

cis7 view.inc views_content_context_view_get_children($plugin, $parent)
cle7 view.inc views_content_context_view_get_children($plugin, $parent)
elmsmedia7 view.inc views_content_context_view_get_children($plugin, $parent)
icor7 view.inc views_content_context_view_get_children($plugin, $parent)
meedjum_blog7 view.inc views_content_context_view_get_children($plugin, $parent)
mooc7 view.inc views_content_context_view_get_children($plugin, $parent)
1 string reference to 'views_content_context_view_get_children'
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 51
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_get_children($plugin, $parent) {
  $types = array(
    'view' => $plugin,
  );

  // We're keeping the 'view' context around for legacy reasons but
  // we want to disable the UI so you can't add it that way anymore.
  $types['view']['no ui'] = TRUE;

  $views = views_get_applicable_views('returns context');
  foreach ($views as $data) {
    list($view, $id) = $data;
    $info = _views_content_get_context_from_display($view, $id, $parent, FALSE);
    if ($info) {
      $info['no required context ui'] = TRUE;
      $types[$info['name']] = $info;
    }
  }

  return $types;
}