Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
AFAICT -- but I'm not sure, since there's no documentation (#1683194: missing api.php file), hook_features_revert() shouldn't return anything.
At least, all the implementations inside features return nothing, apart from context_features_revert() which does.
I *think* the hook is invoked in _features_restore():
features_invoke($component, $restore_hook, $module_name);
so nothing is done with the return value.
Comments
Comment #1
joachim CreditAttribution: joachim commentedI guess now I've spotted the API docs (don't know how I didn't see them...) I can see the problem is either:
a) the other way round:
b) the api docs are wrong
Comment #2
hefox CreditAttribution: hefox commentedDocs are wrong/outdated
Though, the docs would be good idea to do, but doing that'd involve changing a lot of implementations to return correctl.
Comment #3
joachim CreditAttribution: joachim commentedSo it's the docs and context_features_revert() that need to be fixed :)
Comment #4
joachim CreditAttribution: joachim commentedNeeds fixing on D6 too.
Comment #5
mpotter CreditAttribution: mpotter commentedUpdated the API docs. Committed in 77fd2cd