function views_content_view_from_argument_get_child
1 string reference to 'views_content_view_from_argument_get_child'
- view_from_argument.inc in views_content/
plugins/ relationships/ view_from_argument.inc - Plugin to provide an relationship handler for a view by argument input settings.
File
-
views_content/
plugins/ relationships/ view_from_argument.inc, line 20
Code
function views_content_view_from_argument_get_child($plugin, $parent, $child) {
list($name, $id) = explode('-', $child, 2);
$view = views_get_view($name);
if (!$view) {
return;
}
$view->set_display($id);
if ($view->current_display != $id) {
return;
}
$info = _views_content_get_context_from_display($view, $id, $parent, TRUE);
if ($info) {
return $info;
}
return;
}