You are here

function _htmlpurifier_option_cmp in HTML Purifier 7.2

Sort by weight of the htmlpurifier info

Parameters

mixed array $a:

mixed array $b:

Return value

number

1 string reference to '_htmlpurifier_option_cmp'
_htmlpurifier_settings in ./htmlpurifier.module
Generates a settings form for configuring HTML Purifier.

File

./htmlpurifier.module, line 756
Implements HTML Purifier as a Drupal filter.

Code

function _htmlpurifier_option_cmp($a, $b) {
  return $a['weight'] - $b['weight'];
}