You are here

function feed_import_sort_filter_by_weight in Feed Import 7

Same name and namespace in other branches
  1. 7.3 feed_import.module \feed_import_sort_filter_by_weight()
  2. 7.2 feed_import.module \feed_import_sort_filter_by_weight()

usort() callback, for sorting filters by weight

2 string references to 'feed_import_sort_filter_by_weight'
feed_import_edit_filter_form_submit in ./feed_import.module
Edit filter form submit
feed_import_edit_filter_form_validate in ./feed_import.module
Edit filter form validate

File

./feed_import.module, line 1276
User interface, cron functions for feed_import module

Code

function feed_import_sort_filter_by_weight($a, $b) {
  if ($a['weight'] == $b['weight']) {
    return 0;
  }
  return $a['weight'] > $b['weight'] ? 1 : -1;
}