From ddc18ff6b28fba465310e93fe999efc9484b77da Mon Sep 17 00:00:00 2001 From: Natkeeran Date: Wed, 6 Nov 2019 11:55:53 -0500 Subject: [PATCH] add some comments --- modules/islandora_videojs/islandora_videojs.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/islandora_videojs/islandora_videojs.module b/modules/islandora_videojs/islandora_videojs.module index 10736c75..6bacaf22 100644 --- a/modules/islandora_videojs/islandora_videojs.module +++ b/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) { $transcript_urls = get_transcript_urls(); 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() { // Get the nid $node = \Drupal::routeMatch()->getParameter('node');