You are here

smartmenus.module in Smartmenus.js 8

Same filename and directory in other branches
  1. 7 smartmenus.module

Contains smartmenus.module.

File

smartmenus.module
View 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 &lt;a href=&quot;http://www.smartmenus.org/&quot;&gt;Smartmenus&lt;/a&gt; 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

Namesort descending Description
smartmenus_help Implements hook_help().
smartmenus_theme Implements hook_theme().