Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/media/media.api.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /** |
Chris@0 | 4 * @file |
Chris@0 | 5 * Hooks related to Media and its plugins. |
Chris@0 | 6 */ |
Chris@0 | 7 |
Chris@0 | 8 /** |
Chris@0 | 9 * @addtogroup hooks |
Chris@0 | 10 * @{ |
Chris@0 | 11 */ |
Chris@0 | 12 |
Chris@0 | 13 /** |
Chris@0 | 14 * Alters the information provided in \Drupal\media\Annotation\MediaSource. |
Chris@0 | 15 * |
Chris@0 | 16 * @param array $sources |
Chris@0 | 17 * The array of media source plugin definitions, keyed by plugin ID. |
Chris@0 | 18 */ |
Chris@0 | 19 function hook_media_source_info_alter(array &$sources) { |
Chris@0 | 20 $sources['youtube']['label'] = t('Youtube rocks!'); |
Chris@0 | 21 } |
Chris@0 | 22 |
Chris@0 | 23 /** |
Chris@0 | 24 * @} End of "addtogroup hooks". |
Chris@0 | 25 */ |