2c2 < index 0c3596d..31ad1ee 100644 --- > index 0c3596d..abe0fe5 100644 5c5 < @@ -39,6 +39,11 @@ function defaultcontent_schema() { --- > @@ -39,6 +39,12 @@ function defaultcontent_schema() { 11c11,12 > + 'type' => 'int', --- < - 'type' => 'varchar', < - 'length' => 225, 18c19 < index 62764bf..2310aae 100644 --- > index 0b6823b..d16bc9b 100644 106,135d106 < @@ -342,20 +377,18 @@ function defaultcontent_import_menu_link($key, $link) { < } < < /** < - * use to sort component < - * < - * this ask all alter plugins for a import_sort callback > + * Sorts by sort_value. < */ < function defaultcontent_import_sort($a, $b) { < - $plugins = defaultcontent_get_alter_plugins(); < - $cmp = 0; < - foreach ($plugins as $plugin) { < - $cb = isset($plugin['import_sort callback']) ? $plugin['import_sort callback'] : $plugin['name'] . '_import_sort'; < - if (function_exists($cb)) { < - $cmp = $cb($a, $b); < - } > + if ($a->sort_value < $b->sort_value) { > + return -1; > + } > + elseif ($b->sort_value < $a->sort_value) { > + return 1; > + } > + else { > + return 0; > } < - return $cmp; < } < < /**