dxpr_gridstack.module in DXPR GridStack 8
Same filename and directory in other branches
Primary module hooks for DXPR GridStack module.
File
dxpr_gridstack.moduleView source
<?php
/**
* @file
* Primary module hooks for DXPR GridStack module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function dxpr_gridstack_help($route_name, RouteMatchInterface $route_match) {
if ($route_name == 'help.page.dxpr_gridstack') {
return t('Read our <a href=":url">DXPR GridStack Views Tutorial</a> on DXPR.com.', [
':url' => 'https://www.sooperthemes.com/documentation/creating-new-gridstack-view',
]);
}
}
/**
* Implements hook_theme().
*/
function dxpr_gridstack_theme() {
return [
'dxpr_gridstack_gridstack_style' => [
'variables' => [],
'file' => 'theme.inc',
],
'dxpr_gridstack_gridstack_row' => [
'variables' => [],
'file' => 'theme.inc',
],
'dxpr_gridstack_gridstack_formatter' => [
'variables' => [
'item' => NULL,
'item_attributes' => NULL,
'url' => NULL,
'image_style' => NULL,
],
'file' => 'theme.inc',
],
];
}
Functions
Name | Description |
---|---|
dxpr_gridstack_help | Implements hook_help(). |
dxpr_gridstack_theme | Implements hook_theme(). |