It has one hook at the moment:

hook_welcome_mail_mail_alter

Comments

eiriksm created an issue. See original summary.

davi.uezono’s picture

Assigned: Unassigned » davi.uezono

assigning it to me, wip

davi.uezono’s picture

Sample api.php file created.

davi.uezono’s picture

Status: Active » Needs review
davi.uezono’s picture

Assigned: davi.uezono » Unassigned
eiriksm’s picture

Status: Needs review » Needs work

Thanks for the patch!

Could you change the following:

+ * @param string $message
+ * The message itself.
+ */

This param is an array. The description is also misleading. You can change it to say it is a $message array, as used in drupal_mail.

Also, please change

function hook_welcome_mail_mail_alter($message) {

to

function hook_welcome_mail_mail_alter(&$message) {

...since you are required to use it like that in a custom module.

davi.uezono’s picture

Assigned: Unassigned » davi.uezono

ok, fixing it right now.
my apologies if some contrib workflow is wrong, still trying to learn here. thanks for your patience.

davi.uezono’s picture

Assigned: davi.uezono » Unassigned
Status: Needs work » Needs review
StatusFileSize
new851 bytes

  • eiriksm committed 6b34822 on 8.x-1.x authored by davi.uezono
    Issue #2932920 by davi.uezono, eiriksm: Create an api.php file
    
eiriksm’s picture

Status: Needs review » Fixed

Your contrib workflow is very good!

Thanks alot for your patch. Commited now!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.