smartmenus.module in Smartmenus.js 8
Same filename and directory in other branches
Contains smartmenus.module.
File
smartmenus.moduleView source
<?php
/**
* @file
* Contains smartmenus.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function smartmenus_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the smartmenus module.
case 'help.page.smartmenus':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Responsive drop-down menus with the <a href="http://www.smartmenus.org/">Smartmenus</a> jQuery plugin.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function smartmenus_theme() {
return [
'smartmenus_block' => [
'variables' => [
'menu_tree' => NULL,
'attributes' => NULL,
],
],
'smartmenus_menu' => [
'variables' => [
'items' => NULL,
'attributes' => NULL,
'menu_name' => NULL,
'depth' => NULL,
'toggle' => NULL,
],
],
'smartmenus_toggle' => [
'variables' => [],
],
];
}
Functions
Name | Description |
---|---|
smartmenus_help | Implements hook_help(). |
smartmenus_theme | Implements hook_theme(). |