You are here

function imce_rolesort in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.admin.inc \imce_rolesort()
  2. 6 inc/admin.inc \imce_rolesort()

Sorting function for roles.

2 string references to 'imce_rolesort'
imce_admin_submit in inc/imce.admin.inc
Submit admin form.
imce_sorted_roles in inc/imce.admin.inc
Sort roles according to their weights.

File

inc/imce.admin.inc, line 784
Serves administration pages of IMCE.

Code

function imce_rolesort($r1, $r2) {
  return $r1['weight'] - $r2['weight'];
}