function feed_import_sort_filter_by_weight in Feed Import 7.3
Same name and namespace in other branches
- 7 feed_import.module \feed_import_sort_filter_by_weight()
- 7.2 feed_import.module \feed_import_sort_filter_by_weight()
usort() callback, for sorting filters by weight
3 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
- feed_import_reorder_fields_form_submit in ./
feed_import.module - Re-order fields form submit.
File
- ./
feed_import.module, line 1699 - 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;
}