You are here

dxpr_gridstack.module in DXPR GridStack 1.0.x

Same filename and directory in other branches
  1. 8 dxpr_gridstack.module
  2. 7 dxpr_gridstack.module

Primary module hooks for DXPR GridStack module.

File

dxpr_gridstack.module
View 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

Namesort descending Description
dxpr_gridstack_help Implements hook_help().
dxpr_gridstack_theme Implements hook_theme().