{"action":"created","comment":{"url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/comments/95255072","pull_request_review_id":15804642,"id":95255072,"diff_hunk":"@@ -18,3 +18,73 @@ function opl_storybook_ctools_plugin_directory($module, $plugin) {\n     return \"plugins/\". $plugin;\n   }\n }\n+\n+/**\n+ * Implements hook_field_extra_fields().\n+ */\n+function opl_storybook_field_extra_fields() {\n+  $extra['node']['audio']['display']['transcription_link_audio'] = array(\n+    'label' => t('Audio Transcription Link'),\n+    'description' => t('Links to new tab with transcription'),\n+    'weight' => 0,\n+  );\n+  $extra['node']['video']['display']['transcription_link_video'] = array(\n+    'label' => t('Video Transcription Link'),\n+    'description' => t('Links to new tab with transcription'),\n+    'weight' => 0,\n+  );\n+  return $extra;\n+}\n+\n+/**\n+ * Implements hook_node_view().\n+ */\n+function opl_storybook_node_view($node, $view_mode, $langcode) {\n+  // Only show the field for node of article type\n+  if ($node->type == 'audio') {\n+    $nodeurl = url('node/'. $node->nid);\n+    $node->content['transcription_link_audio'] = array(\n+      '#markup' => '<a target=\"_blank\" href=\"'. $nodeurl .'/#transcription\">'. t('Transcription') .'</a>',\n+    );\n+  }\n+  if ($node->type == 'video') {\n+    $nodeurl = url('node/'. $node->nid);\n+    $node->content['transcription_link_video'] = array(\n+      '#markup' => '<a target=\"_blank\" href=\"'. $nodeurl .'/#transcription\">'. t('Transcription') .'</a>',\n+    );\n+  }  \n+}\n+\n+/**\n+ * Implements hook_block_info().\n+ *\n+ * This hook declares what blocks are provided by the module.","path":"opl_storybook.module","position":44,"original_position":44,"commit_id":"ddf518bd31b6290a3dde20a9010817386b5cac3a","original_commit_id":"ddf518bd31b6290a3dde20a9010817386b5cac3a","user":{"login":"wendywarren","id":12865609,"avatar_url":"https://avatars.githubusercontent.com/u/12865609?v=3","gravatar_id":"","url":"https://api.github.com/users/wendywarren","html_url":"https://github.com/wendywarren","followers_url":"https://api.github.com/users/wendywarren/followers","following_url":"https://api.github.com/users/wendywarren/following{/other_user}","gists_url":"https://api.github.com/users/wendywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/wendywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendywarren/subscriptions","organizations_url":"https://api.github.com/users/wendywarren/orgs","repos_url":"https://api.github.com/users/wendywarren/repos","events_url":"https://api.github.com/users/wendywarren/events{/privacy}","received_events_url":"https://api.github.com/users/wendywarren/received_events","type":"User","site_admin":false},"body":"Removed.","created_at":"2017-01-09T21:54:07Z","updated_at":"2017-01-09T21:54:07Z","html_url":"https://github.com/OPLBPO/opl_storybook/pull/15#discussion_r95255072","pull_request_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/comments/95255072"},"html":{"href":"https://github.com/OPLBPO/opl_storybook/pull/15#discussion_r95255072"},"pull_request":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15","id":100755786,"html_url":"https://github.com/OPLBPO/opl_storybook/pull/15","diff_url":"https://github.com/OPLBPO/opl_storybook/pull/15.diff","patch_url":"https://github.com/OPLBPO/opl_storybook/pull/15.patch","issue_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/15","number":15,"state":"open","locked":false,"title":"feat(update module): Update to nav and social media bar, add instagra…","user":{"login":"wendywarren","id":12865609,"avatar_url":"https://avatars.githubusercontent.com/u/12865609?v=3","gravatar_id":"","url":"https://api.github.com/users/wendywarren","html_url":"https://github.com/wendywarren","followers_url":"https://api.github.com/users/wendywarren/followers","following_url":"https://api.github.com/users/wendywarren/following{/other_user}","gists_url":"https://api.github.com/users/wendywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/wendywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendywarren/subscriptions","organizations_url":"https://api.github.com/users/wendywarren/orgs","repos_url":"https://api.github.com/users/wendywarren/repos","events_url":"https://api.github.com/users/wendywarren/events{/privacy}","received_events_url":"https://api.github.com/users/wendywarren/received_events","type":"User","site_admin":false},"body":"…m feed, audio/video transcription","created_at":"2017-01-09T20:35:50Z","updated_at":"2017-01-09T21:54:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db11bb684f9172872ed48559bb35809dab2524a8","assignee":{"login":"morinluc0","id":1854807,"avatar_url":"https://avatars.githubusercontent.com/u/1854807?v=3","gravatar_id":"","url":"https://api.github.com/users/morinluc0","html_url":"https://github.com/morinluc0","followers_url":"https://api.github.com/users/morinluc0/followers","following_url":"https://api.github.com/users/morinluc0/following{/other_user}","gists_url":"https://api.github.com/users/morinluc0/gists{/gist_id}","starred_url":"https://api.github.com/users/morinluc0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morinluc0/subscriptions","organizations_url":"https://api.github.com/users/morinluc0/orgs","repos_url":"https://api.github.com/users/morinluc0/repos","events_url":"https://api.github.com/users/morinluc0/events{/privacy}","received_events_url":"https://api.github.com/users/morinluc0/received_events","type":"User","site_admin":false},"assignees":[{"login":"morinluc0","id":1854807,"avatar_url":"https://avatars.githubusercontent.com/u/1854807?v=3","gravatar_id":"","url":"https://api.github.com/users/morinluc0","html_url":"https://github.com/morinluc0","followers_url":"https://api.github.com/users/morinluc0/followers","following_url":"https://api.github.com/users/morinluc0/following{/other_user}","gists_url":"https://api.github.com/users/morinluc0/gists{/gist_id}","starred_url":"https://api.github.com/users/morinluc0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morinluc0/subscriptions","organizations_url":"https://api.github.com/users/morinluc0/orgs","repos_url":"https://api.github.com/users/morinluc0/repos","events_url":"https://api.github.com/users/morinluc0/events{/privacy}","received_events_url":"https://api.github.com/users/morinluc0/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15/commits","review_comments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15/comments","review_comment_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/15/comments","statuses_url":"https://api.github.com/repos/OPLBPO/opl_storybook/statuses/ddf518bd31b6290a3dde20a9010817386b5cac3a","head":{"label":"OPLBPO:navsaudiovideoinstagramfeed","ref":"navsaudiovideoinstagramfeed","sha":"ddf518bd31b6290a3dde20a9010817386b5cac3a","user":{"login":"OPLBPO","id":4613015,"avatar_url":"https://avatars.githubusercontent.com/u/4613015?v=3","gravatar_id":"","url":"https://api.github.com/users/OPLBPO","html_url":"https://github.com/OPLBPO","followers_url":"https://api.github.com/users/OPLBPO/followers","following_url":"https://api.github.com/users/OPLBPO/following{/other_user}","gists_url":"https://api.github.com/users/OPLBPO/gists{/gist_id}","starred_url":"https://api.github.com/users/OPLBPO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPLBPO/subscriptions","organizations_url":"https://api.github.com/users/OPLBPO/orgs","repos_url":"https://api.github.com/users/OPLBPO/repos","events_url":"https://api.github.com/users/OPLBPO/events{/privacy}","received_events_url":"https://api.github.com/users/OPLBPO/received_events","type":"Organization","site_admin":false},"repo":{"id":73105212,"name":"opl_storybook","full_name":"OPLBPO/opl_storybook","owner":{"login":"OPLBPO","id":4613015,"avatar_url":"https://avatars.githubusercontent.com/u/4613015?v=3","gravatar_id":"","url":"https://api.github.com/users/OPLBPO","html_url":"https://github.com/OPLBPO","followers_url":"https://api.github.com/users/OPLBPO/followers","following_url":"https://api.github.com/users/OPLBPO/following{/other_user}","gists_url":"https://api.github.com/users/OPLBPO/gists{/gist_id}","starred_url":"https://api.github.com/users/OPLBPO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPLBPO/subscriptions","organizations_url":"https://api.github.com/users/OPLBPO/orgs","repos_url":"https://api.github.com/users/OPLBPO/repos","events_url":"https://api.github.com/users/OPLBPO/events{/privacy}","received_events_url":"https://api.github.com/users/OPLBPO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OPLBPO/opl_storybook","description":null,"fork":false,"url":"https://api.github.com/repos/OPLBPO/opl_storybook","forks_url":"https://api.github.com/repos/OPLBPO/opl_storybook/forks","keys_url":"https://api.github.com/repos/OPLBPO/opl_storybook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OPLBPO/opl_storybook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OPLBPO/opl_storybook/teams","hooks_url":"https://api.github.com/repos/OPLBPO/opl_storybook/hooks","issue_events_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/events{/number}","events_url":"https://api.github.com/repos/OPLBPO/opl_storybook/events","assignees_url":"https://api.github.com/repos/OPLBPO/opl_storybook/assignees{/user}","branches_url":"https://api.github.com/repos/OPLBPO/opl_storybook/branches{/branch}","tags_url":"https://api.github.com/repos/OPLBPO/opl_storybook/tags","blobs_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/refs{/sha}","trees_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OPLBPO/opl_storybook/statuses/{sha}","languages_url":"https://api.github.com/repos/OPLBPO/opl_storybook/languages","stargazers_url":"https://api.github.com/repos/OPLBPO/opl_storybook/stargazers","contributors_url":"https://api.github.com/repos/OPLBPO/opl_storybook/contributors","subscribers_url":"https://api.github.com/repos/OPLBPO/opl_storybook/subscribers","subscription_url":"https://api.github.com/repos/OPLBPO/opl_storybook/subscription","commits_url":"https://api.github.com/repos/OPLBPO/opl_storybook/commits{/sha}","git_commits_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/commits{/sha}","comments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/comments{/number}","issue_comment_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/comments{/number}","contents_url":"https://api.github.com/repos/OPLBPO/opl_storybook/contents/{+path}","compare_url":"https://api.github.com/repos/OPLBPO/opl_storybook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OPLBPO/opl_storybook/merges","archive_url":"https://api.github.com/repos/OPLBPO/opl_storybook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OPLBPO/opl_storybook/downloads","issues_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues{/number}","pulls_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls{/number}","milestones_url":"https://api.github.com/repos/OPLBPO/opl_storybook/milestones{/number}","notifications_url":"https://api.github.com/repos/OPLBPO/opl_storybook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OPLBPO/opl_storybook/labels{/name}","releases_url":"https://api.github.com/repos/OPLBPO/opl_storybook/releases{/id}","deployments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/deployments","created_at":"2016-11-07T17:49:05Z","updated_at":"2016-12-13T22:50:47Z","pushed_at":"2017-01-09T20:35:51Z","git_url":"git://github.com/OPLBPO/opl_storybook.git","ssh_url":"git@github.com:OPLBPO/opl_storybook.git","clone_url":"https://github.com/OPLBPO/opl_storybook.git","svn_url":"https://github.com/OPLBPO/opl_storybook","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"7.x-1.x"}},"base":{"label":"OPLBPO:7.x-1.x","ref":"7.x-1.x","sha":"fc2bd5565888b8fe7dcb3f1bd4da31977edc5ee9","user":{"login":"OPLBPO","id":4613015,"avatar_url":"https://avatars.githubusercontent.com/u/4613015?v=3","gravatar_id":"","url":"https://api.github.com/users/OPLBPO","html_url":"https://github.com/OPLBPO","followers_url":"https://api.github.com/users/OPLBPO/followers","following_url":"https://api.github.com/users/OPLBPO/following{/other_user}","gists_url":"https://api.github.com/users/OPLBPO/gists{/gist_id}","starred_url":"https://api.github.com/users/OPLBPO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPLBPO/subscriptions","organizations_url":"https://api.github.com/users/OPLBPO/orgs","repos_url":"https://api.github.com/users/OPLBPO/repos","events_url":"https://api.github.com/users/OPLBPO/events{/privacy}","received_events_url":"https://api.github.com/users/OPLBPO/received_events","type":"Organization","site_admin":false},"repo":{"id":73105212,"name":"opl_storybook","full_name":"OPLBPO/opl_storybook","owner":{"login":"OPLBPO","id":4613015,"avatar_url":"https://avatars.githubusercontent.com/u/4613015?v=3","gravatar_id":"","url":"https://api.github.com/users/OPLBPO","html_url":"https://github.com/OPLBPO","followers_url":"https://api.github.com/users/OPLBPO/followers","following_url":"https://api.github.com/users/OPLBPO/following{/other_user}","gists_url":"https://api.github.com/users/OPLBPO/gists{/gist_id}","starred_url":"https://api.github.com/users/OPLBPO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPLBPO/subscriptions","organizations_url":"https://api.github.com/users/OPLBPO/orgs","repos_url":"https://api.github.com/users/OPLBPO/repos","events_url":"https://api.github.com/users/OPLBPO/events{/privacy}","received_events_url":"https://api.github.com/users/OPLBPO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OPLBPO/opl_storybook","description":null,"fork":false,"url":"https://api.github.com/repos/OPLBPO/opl_storybook","forks_url":"https://api.github.com/repos/OPLBPO/opl_storybook/forks","keys_url":"https://api.github.com/repos/OPLBPO/opl_storybook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OPLBPO/opl_storybook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OPLBPO/opl_storybook/teams","hooks_url":"https://api.github.com/repos/OPLBPO/opl_storybook/hooks","issue_events_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/events{/number}","events_url":"https://api.github.com/repos/OPLBPO/opl_storybook/events","assignees_url":"https://api.github.com/repos/OPLBPO/opl_storybook/assignees{/user}","branches_url":"https://api.github.com/repos/OPLBPO/opl_storybook/branches{/branch}","tags_url":"https://api.github.com/repos/OPLBPO/opl_storybook/tags","blobs_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/refs{/sha}","trees_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OPLBPO/opl_storybook/statuses/{sha}","languages_url":"https://api.github.com/repos/OPLBPO/opl_storybook/languages","stargazers_url":"https://api.github.com/repos/OPLBPO/opl_storybook/stargazers","contributors_url":"https://api.github.com/repos/OPLBPO/opl_storybook/contributors","subscribers_url":"https://api.github.com/repos/OPLBPO/opl_storybook/subscribers","subscription_url":"https://api.github.com/repos/OPLBPO/opl_storybook/subscription","commits_url":"https://api.github.com/repos/OPLBPO/opl_storybook/commits{/sha}","git_commits_url":"https://api.github.com/repos/OPLBPO/opl_storybook/git/commits{/sha}","comments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/comments{/number}","issue_comment_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/comments{/number}","contents_url":"https://api.github.com/repos/OPLBPO/opl_storybook/contents/{+path}","compare_url":"https://api.github.com/repos/OPLBPO/opl_storybook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OPLBPO/opl_storybook/merges","archive_url":"https://api.github.com/repos/OPLBPO/opl_storybook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OPLBPO/opl_storybook/downloads","issues_url":"https://api.github.com/repos/OPLBPO/opl_storybook/issues{/number}","pulls_url":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls{/number}","milestones_url":"https://api.github.com/repos/OPLBPO/opl_storybook/milestones{/number}","notifications_url":"https://api.github.com/repos/OPLBPO/opl_storybook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OPLBPO/opl_storybook/labels{/name}","releases_url":"https://api.github.com/repos/OPLBPO/opl_storybook/releases{/id}","deployments_url":"https://api.github.com/repos/OPLBPO/opl_storybook/deployments","created_at":"2016-11-07T17:49:05Z","updated_at":"2016-12-13T22:50:47Z","pushed_at":"2017-01-09T20:35:51Z","git_url":"git://github.com/OPLBPO/opl_storybook.git","ssh_url":"git@github.com:OPLBPO/opl_storybook.git","clone_url":"https://github.com/OPLBPO/opl_storybook.git","svn_url":"https://github.com/OPLBPO/opl_storybook","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"7.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15"},"html":{"href":"https://github.com/OPLBPO/opl_storybook/pull/15"},"issue":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/15"},"comments":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/OPLBPO/opl_storybook/statuses/ddf518bd31b6290a3dde20a9010817386b5cac3a"}}}}
{"actor":{"display_login":"wendywarren"}}