Skip to content
Snippets Groups Projects
Commit 0f623462 authored by Shubham Rathore's avatar Shubham Rathore Committed by Ruud Simons
Browse files

Issue #3343596: Implement hook_help()

parent bedaa119
No related branches found
No related tags found
1 merge request!1Issue #3343596: Implement hook_help()
......@@ -5,6 +5,23 @@
* Contact_storage_options_email_recipient module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function contact_storage_options_email_recipient_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the contact_storage_options_email_recipient module.
case 'help.page.contact_storage_options_email_recipient':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The <a href=":contact_storage">contact storage</a> module supplies an "Options email" field type which can be used to determine the recipient of the contact form. When an "Options email" field is added to a form, you are still required to enter a recipient\'s email address on the contact form edit page. This results in an email sent to the entered recipient address and the recipient selected in the "Options email" field.', [':contact_storage' => 'https://www.drupal.org/project/contact_storage']) . '</p>';
$output .= '<p>' . t('This module removes the recipient field when an required "Options email" is added to the form and places a notification on top of the edit page: "The recipient of this form is determined by the "[field name]" field.". When a non-required "Options email" field is added to the edit page: "An optional additional recipient of this form is determined by the "[field name]" field."') . '</p>';
return $output;
}
}
/**
* Implements hook_entity_type_alter().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment