fusepump-8.x-1.3/fusepump.module

fusepump.module
<?php

/**
 * @file
 * Manages fusepump.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function fusepump_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the tint module.
    case 'help.page.fusepump':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('FusePump (Where To Buy Connector) integration.') . '</p>';

      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function fusepump_theme($existing, $type, $theme, $path) {
  return [
    'fusepump_widget' => [
      'template' => 'fusepump-widget',
      'variables' => [
        'id' => NULL,
        'fallback' => NULL,
        'field_id' => NULL,
        'delta' => NULL,
      ],
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc