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.
The video module video_features_revert function calls video_preset_delete but that function is defined in the video_ui module, which may not be present or enabled at all.
There are many ways this can be dealt with so I'm not providing a patch. I'll just add video_ui as a dependency to my feature for now.
Comments
Comment #1
JvE CreditAttribution: JvE commentedOk, that does not help.
As a workaround I added this line to the video_features_revert() function in the video.features.inc as well:
module_load_include('inc', 'video_ui', 'video.preset');
Since this is a workaround and not a solution I'm not providing a patch.
Upping prio because this breaks the Features support of the module.
Comment #2
Jorrit CreditAttribution: Jorrit commentedFixed in 7.x-2.x-dev. I move the delete/revert functionality to a better place, where the feature functions can access it.