You are here

function bueditor_rolesort in BUEditor 6

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_rolesort()
  2. 6.2 admin/bueditor.admin.inc \bueditor_rolesort()
  3. 7 admin/bueditor.admin.inc \bueditor_rolesort()

user sorting function for roles.

2 string references to 'bueditor_rolesort'
bueditor_admin_submit in ./bueditor.admin.inc
Admin form submit.
bueditor_sorted_roles in ./bueditor.admin.inc
Sort roles according to their weights.

File

./bueditor.admin.inc, line 494

Code

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