Skip to content
Snippets Groups Projects

Resolve #3373487 "Implement hookhelp"

Closes #3373487

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
14 14 function send_emails_help($route_name, RouteMatchInterface $route_match) {
15 15 switch ($route_name) {
16 16 case 'help.page.send_emails':
17 $output = '';
18 $output .= '<h3>' . t('About') . '</h3>';
19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
20 return $output;
17 $output = '';
18 $output .= '<h3>' . t('About') . '</h3>';
19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
20 $output .= '<h4>' .t('Here how I use it in a custom module:') . '</h4>';
21 $output .= '<ul>'.'<li>'.t('Install the module using the normal process <a href="https://www.drupal.org/docs/extending-drupal/installing-modules#s-step-2-enable-the-module">(see documentation)</a>').'</li>';
22 $output .= '<li>'.t('Create a new email.').'</li>';
23 $output .= '<li>'.t('Go to Configuation > Send Emails Configuation: `/admin/config/send_emails/emails#edit-emails-definitions`').'</li>';
  • Nathan Tsai
    Nathan Tsai @chrishappy started a thread on an outdated change in commit d0882c59
  • 17 $output = '';
    18 $output .= '<h3>' . t('About') . '</h3>';
    19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 return $output;
    17 $output = '';
    18 $output .= '<h3>' . t('About') . '</h3>';
    19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 $output .= '<h4>' .t('Here how I use it in a custom module:') . '</h4>';
    21 $output .= '<ul>'.'<li>'.t('Install the module using the normal process <a href="https://www.drupal.org/docs/extending-drupal/installing-modules#s-step-2-enable-the-module">(see documentation)</a>').'</li>';
    22 $output .= '<li>'.t('Create a new email.').'</li>';
    23 $output .= '<li>'.t('Go to Configuation > Send Emails Configuation: `/admin/config/send_emails/emails#edit-emails-definitions`').'</li>';
    24 $output .= '<li>'.t('Define a new email using:
    25 director_private_notes | Send an email when a node "director_agendas" is created or updated and the "field_send_emails_notify" checkbox is checked').'</li>';
    26 $output .= '<li>'.t('Click "Save"').'</li>';
    27 $output .= '<li>'.t('The page should now have a new email that you can edit').'</li>';
    28 $output .= '<li>'.t('Add the below code to a custom module').'</li>';
  • Nathan Tsai
    Nathan Tsai @chrishappy started a thread on an outdated change in commit d0882c59
  • 18 $output .= '<h3>' . t('About') . '</h3>';
    19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 return $output;
    17 $output = '';
    18 $output .= '<h3>' . t('About') . '</h3>';
    19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 $output .= '<h4>' .t('Here how I use it in a custom module:') . '</h4>';
    21 $output .= '<ul>'.'<li>'.t('Install the module using the normal process <a href="https://www.drupal.org/docs/extending-drupal/installing-modules#s-step-2-enable-the-module">(see documentation)</a>').'</li>';
    22 $output .= '<li>'.t('Create a new email.').'</li>';
    23 $output .= '<li>'.t('Go to Configuation > Send Emails Configuation: `/admin/config/send_emails/emails#edit-emails-definitions`').'</li>';
    24 $output .= '<li>'.t('Define a new email using:
    25 director_private_notes | Send an email when a node "director_agendas" is created or updated and the "field_send_emails_notify" checkbox is checked').'</li>';
    26 $output .= '<li>'.t('Click "Save"').'</li>';
    27 $output .= '<li>'.t('The page should now have a new email that you can edit').'</li>';
    28 $output .= '<li>'.t('Add the below code to a custom module').'</li>';
    29 $output .= '<li>'.t('Flush the caches').'</li>'.'</ul>';
  • Nathan Tsai
    Nathan Tsai @chrishappy started a thread on an outdated change in commit d0882c59
  • 19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 return $output;
    17 $output = '';
    18 $output .= '<h3>' . t('About') . '</h3>';
    19 $output .= '<p>' . t('Send Emails, a light-weight module that provides a UI to create & update emails and a service to send the emails.') . '</p>';
    20 $output .= '<h4>' .t('Here how I use it in a custom module:') . '</h4>';
    21 $output .= '<ul>'.'<li>'.t('Install the module using the normal process <a href="https://www.drupal.org/docs/extending-drupal/installing-modules#s-step-2-enable-the-module">(see documentation)</a>').'</li>';
    22 $output .= '<li>'.t('Create a new email.').'</li>';
    23 $output .= '<li>'.t('Go to Configuation > Send Emails Configuation: `/admin/config/send_emails/emails#edit-emails-definitions`').'</li>';
    24 $output .= '<li>'.t('Define a new email using:
    25 director_private_notes | Send an email when a node "director_agendas" is created or updated and the "field_send_emails_notify" checkbox is checked').'</li>';
    26 $output .= '<li>'.t('Click "Save"').'</li>';
    27 $output .= '<li>'.t('The page should now have a new email that you can edit').'</li>';
    28 $output .= '<li>'.t('Add the below code to a custom module').'</li>';
    29 $output .= '<li>'.t('Flush the caches').'</li>'.'</ul>';
    30 $output .= '<p>' .t('For infomation about project visit the project page <a href="https://www.drupal.org/project/send_emails">Send emails</a>'). '</p>';
  • Thank you for your contribution! Added some comments below.

  • added 1 commit

    Compare with previous version

  • Nathan Tsai added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading