You are here

sooperthemes_gridstack.module in Sooperthemes GridStack 8

Same filename and directory in other branches
  1. 7 sooperthemes_gridstack.module

Primary module hooks for SooperThemes GridStack module.

File

sooperthemes_gridstack.module
View source
<?php

/**
 * @file
 * Primary module hooks for SooperThemes GridStack module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function sooperthemes_gridstack_help($route_name, RouteMatchInterface $route_match) {
  if ($route_name == 'help.page.sooperthemes_gridstack') {
    return t('Read our <a href=":url">SooperThemes GridStack Views Tutorial</a> on SooperThemes.com.', [
      ':url' => 'https://www.sooperthemes.com/documentation/creating-new-gridstack-view',
    ]);
  }
}

/**
 * Implements hook_theme().
 */
function sooperthemes_gridstack_theme() {
  return [
    'sooperthemes_gridstack_gridstack_style' => [
      'variables' => [],
      'file' => 'theme.inc',
    ],
    'sooperthemes_gridstack_gridstack_row' => [
      'variables' => [],
      'file' => 'theme.inc',
    ],
    'sooperthemes_gridstack_gridstack_formatter' => [
      'variables' => [
        'item' => NULL,
        'item_attributes' => NULL,
        'url' => NULL,
        'image_style' => NULL,
      ],
      'file' => 'theme.inc',
    ],
  ];
}

Functions