You are here

function _field_permissions_sort_fields in Field Permissions 6

Function used by uasort to sort structured arrays by title.

2 string references to '_field_permissions_sort_fields'
field_permissions_overview in includes/admin.inc
Menu callback; Field permissions overview.
field_permissions_troubleshooting_form in includes/admin.inc
Menu callback; Field permissions troubleshooting form.

File

includes/admin.inc, line 200
Administrative interface for the Field Permissions module.

Code

function _field_permissions_sort_fields($a, $b) {
  $a_text = is_array($a) && isset($a['widget']['label']) ? $a['widget']['label'] : '';
  $b_text = is_array($b) && isset($b['widget']['label']) ? $b['widget']['label'] : '';
  return strcasecmp($a_text, $b_text);
}