function defaultconfig_components_sort in Default config 7
Sort callback for ordering components.
1 string reference to 'defaultconfig_components_sort'
- defaultconfig_get_components in ./
defaultconfig.module - Get all defaultconfig components.
File
- ./
defaultconfig.module, line 412 - main module file.
Code
function defaultconfig_components_sort($a, $b) {
$a = (array) $a + array(
'weight' => 0,
);
$b = (array) $b + array(
'weight' => 0,
);
return $a['weight'] < $b['weight'] ? -1 : 1;
}