mixitup_views.module in MixItUp Views 8
Same filename and directory in other branches
Contains mixitup_views.module.
File
mixitup_views.moduleView source
<?php
/**
* @file
* Contains mixitup_views.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function mixitup_views_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the mixitup_views module.
case 'help.page.mixitup_views':
$path = dirname(__FILE__) . '/README.txt';
if (file_exists($path)) {
$readme = file_get_contents($path);
}
if (!isset($readme)) {
return NULL;
}
$output = '<pre>' . $readme . '</pre>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function mixitup_views_theme() {
$theme = [
'mixitup_views_sorting' => [
'variables' => [
'sorts' => [],
],
'template' => 'mixitup_views.sorting',
],
];
return $theme;
}
Functions
Name | Description |
---|---|
mixitup_views_help | Implements hook_help(). |
mixitup_views_theme | Implements hook_theme(). |