slider_pro.module in Slider Pro 8
Same filename and directory in other branches
File
slider_pro.moduleView source
<?php
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function slider_pro_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.slider_pro':
$output = file_get_contents(drupal_get_path('module', 'slider_pro') . '/README.md');
return '<pre>' . $output . '</pre>';
}
}
/**
* Implements hook_theme().
*/
function slider_pro_theme() {
return [
'slider_pro' => [
'variables' => [
'rows' => [],
'id' => NULL,
'uses_thumbnails' => FALSE,
],
'template' => 'slider-pro',
],
];
}
Functions
Name | Description |
---|---|
slider_pro_help | Implements hook_help(). |
slider_pro_theme | Implements hook_theme(). |