Browse Source

add some comments

pull/743/head
Natkeeran 5 years ago
parent
commit
ddc18ff6b2
  1. 7
      modules/islandora_videojs/islandora_videojs.module

7
modules/islandora_videojs/islandora_videojs.module

@ -41,6 +41,9 @@ function islandora_videojs_theme_registry_alter(&$theme_registry) {
} }
/**
* videojs theme override
*/
function islandora_videojs_theme($existing, $type, $theme, $path) { function islandora_videojs_theme($existing, $type, $theme, $path) {
$transcript_urls = get_transcript_urls(); $transcript_urls = get_transcript_urls();
return array( return array(
@ -51,7 +54,9 @@ function islandora_videojs_theme($existing, $type, $theme, $path) {
); );
} }
/**
* returns the urls of the transcript of a repository item
*/
function get_transcript_urls() { function get_transcript_urls() {
// Get the nid // Get the nid
$node = \Drupal::routeMatch()->getParameter('node'); $node = \Drupal::routeMatch()->getParameter('node');

Loading…
Cancel
Save