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.
With the new brightcove API v6 that is compatible with v7.x-6.x, the ph library PHP-API-Wrapper controls the sort option by relevance by default. It would be better to have the media browser sorted by most recent instead of relevance especially with sites that have a lot of videos.
this can be accomplished by replacing this line:
$result = $cms->listVideos($search, NULL, $items_per_page, $items_per_page * $page);
by this:
$result = $cms->listVideos($search, '-updated_at', $items_per_page, $items_per_page * $page);
In brightcove_field.video.inc
Comment | File | Size | Author |
---|---|---|---|
#5 | brightcove-sort_by_most_recent-2815307-5.patch | 1.05 KB | mqanneh |
Comments
Comment #2
mqannehComment #3
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedComment #4
mqanneh@tamasd
@jan.mashat
please review the patch.
Comment #5
mqannehRerolling the patch against latest dev version.
Comment #6
mqanneh