You are here

function disqus_theme in Disqus 8

Same name and namespace in other branches
  1. 6 disqus.module \disqus_theme()
  2. 7 disqus.module \disqus_theme()

Implements hook_theme().

File

./disqus.module, line 241
The Disqus Drupal module.

Code

function disqus_theme() {
  $domain = \Drupal::config('disqus.settings')
    ->get('disqus_domain');
  return [
    'disqus_noscript' => [
      'variables' => [
        'message' => t('View the discussion thread.'),
        'url' => "http://{$domain}.disqus.com/",
      ],
    ],
  ];
}