function _draggableviews_get_order_view_display in DraggableViews 7.2
Get the view display identifier.
Parameters
$view: The view object
Return value
A string with the view name and display id separated by ':'.
1 call to _draggableviews_get_order_view_display()
- _draggableviews_load_order_view in ./
draggableviews.module - Load and/or built the order view with the correct view display.
File
- ./
draggableviews.module, line 498
Code
function _draggableviews_get_order_view_display($view, $include_self = TRUE) {
// Proceed only if weight sort criteria is available.
if (!($sort_key = _draggableviews_get_draggable_sort($view))) {
return FALSE;
}
$order_view_display = $view->sort[$sort_key]->options['draggableviews_setting_view'];
if (empty($order_view_display)) {
return FALSE;
}
if (!$include_self) {
if ($order_view_display == 'self' || $order_view_display == $view->name . ':' . $view->current_display) {
return FALSE;
}
}
return $order_view_display;
}