function opigno_messaging_token_info in Opigno messaging 8
Implements hook_token_info().
File
- ./
opigno_messaging.tokens.inc, line 15 - Builds placeholder replacement tokens opigno-wide data.
Code
function opigno_messaging_token_info() {
$types['opigno'] = [
'name' => t("Opigno global"),
'description' => t("Tokens for opigno-wide settings and other global information."),
];
$opigno['url-with-slash'] = [
'name' => t("Global site URL with slash"),
'description' => t("The site URL with slash in the end."),
];
return [
'types' => $types,
'tokens' => [
'opigno' => $opigno,
],
];
}