Skip to content
Snippets Groups Projects

Issue #3339126: hook_help function missing in .module file

Open Kamlesh Kishor Jha requested to merge issue/phone_number-3339126:8.x-1.x into 8.x-1.x
1 file
+ 21
0
Compare changes
  • Side-by-side
  • Inline
+ 21
0
@@ -5,6 +5,27 @@
* phone_number.module
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function phone_number_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the phone_number module.
case 'help.page.phone_number':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Phone Number is a field type that provides flexible validation and intelligent
storage of international telephone numbers through an intuitive UI. Users need
not enter their country-code - there's a nice little country-selector for that.
Telephone numbers of all types are supported and type validation can be
configured per field-instance. Phone Number fields also support (optionally)
collecting and storing extension along with the main phone number.') . '</p>';
return $output;
}
}
/**
* Helper function to get all supported countries for views.
*
Loading