You are here

function _ais_cmp_styles in Adaptive Image Styles (ais) 7

Cmp function for style sort.

See also

http://www.php.net/manual/en/function.usort.php

1 string reference to '_ais_cmp_styles'
ais_js_alter in ./ais.module
Implements hook_js_alter(). Loads the Adaptive javascript as early as possible

File

./ais.module, line 334
Adaptive Image Styles Module

Code

function _ais_cmp_styles($a, $b) {
  if ($a['size'] == $b['size']) {
    return 0;
  }
  return $a['size'] < $b['size'] ? -1 : 1;
}