function _views_position_sort in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 includes/admin.inc \_views_position_sort()
Display position sorting function.
1 string reference to '_views_position_sort'
- views_ui_reorder_displays_form_submit in includes/
admin.inc - Submit handler for rearranging display form.
File
- includes/
admin.inc, line 3246 - Provides the Views' administrative interface.
Code
function _views_position_sort($display1, $display2) {
if ($display1->position != $display2->position) {
return $display1->position < $display2->position ? -1 : 1;
}
return 0;
}