You are here

function bueditor_rolesort in BUEditor 5

Same name and namespace in other branches
  1. 6.2 admin/bueditor.admin.inc \bueditor_rolesort()
  2. 6 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_form_admin_submit in ./bueditor.module
Admin form submit.
bueditor_sorted_roles in ./bueditor.module
Sort roles according to their weights.

File

./bueditor.module, line 607

Code

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