Commit acad5754 authored by generalredneck's avatar generalredneck

Adding a hook_implements on views_data_alter so that VNS gets the latest data.

parent f4631ea0
......@@ -65,6 +65,14 @@ function views_natural_sort_views_api() {
'api' => 3.0,
);
}
function views_natural_sort_module_implements_alter(&$implements, $hook) {
if ($hook == 'views_data_alter') {
// Make views natural sort always last so we get all the up to date info.
$group = $implements['views_natural_sort'];
unset($implements['views_natural_sort']);
$implements['views_natural_sort'] = $group;
}
}
/**
* Implements hook_views_natural_sort_get_entry_types().
......
......@@ -33,4 +33,3 @@ function views_natural_sort_views_data_alter(&$views_data) {
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment