computed_field.module in Computed Field 8
Same filename and directory in other branches
Contains computed_field.module.
File
computed_field.moduleView source
<?php
/**
* @file
* Contains computed_field.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function computed_field_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the computed_field module.
case 'help.page.computed_field':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Defines a field type that allows values to be "computed" via PHP code.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function computed_field_theme() {
$theme = [];
return $theme;
}
Functions
Name | Description |
---|---|
computed_field_help | Implements hook_help(). |
computed_field_theme | Implements hook_theme(). |