You are here

function brb_cmp in Browser Bouncer (brb) 7

Function to order the array of browsers by weight.

2 string references to 'brb_cmp'
brb_admin_settings in ./brb.admin.inc
The admin settings form
brb_widget in ./brb.module
Create the brb widget to display after the page is loaded.

File

./brb.module, line 216
Display a message to let the user knows his/her browser is not supported. This message also offer to the user different browsers that can be used instead.

Code

function brb_cmp($a, $b) {
  if ($a->weight == $b->weight) {
    return 0;
  }
  return $a->weight < $b->weight ? -1 : 1;
}