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.
I'd like to see access control for media_internet providers. Maybe something like hook_menu()
has.
function hook_media_internet_providers() {
return array(
'youtube' => array(
'title' => 'youtube',
'image' => 'youtube.jpg',
'access callback' => 'user_access', // Default values could be user_access
'access arguments' => array('add media from remote sources'), // and add media from remote sources
),
);
}
Comments
Comment #1
mpgeek CreditAttribution: mpgeek commented@Nicklas, Media 1.x is feature frozen. But, if you'd like to see it in 2.x, are you asking for granular access control per internet source? Or something else?
Comment #2
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedExactly :)
Comment #3
mpgeek CreditAttribution: mpgeek commentedComment #4
mpgeek CreditAttribution: mpgeek commentedWondering if this would be better handled by the client modules (media_youtube, media_vimeo, etc)?
Comment #5
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team