You are here

json_field.module in JSON Field 8

Primary hook implementations for the JSON Field module.

File

json_field.module
View source
<?php

/**
 * @file
 * Primary hook implementations for the JSON Field module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function json_field_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the json_field module.
    case 'help.page.json_field':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Provides a JSON field, widgets and a formatter, and Views integration.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function json_field_theme() {
  $theme = [];
  return $theme;
}

Functions

Namesort descending Description
json_field_help Implements hook_help().
json_field_theme Implements hook_theme().