Child pages
  • Guide to Standardized Hooks - Scripts Functions

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Excerpt

The scripts category's events occur when email scripts run.

addpop


Section


Column
width50%


Panel
bgColor#FFFFFF
borderStylenone


Note
titleNote:

We introduced this standardized hook in cPanel & WHM version 80.

This event takes place when the /usr/local/cpanel/scripts/addpop script creates the email account.

Available Stages:

  • pre — Hook action code runs before the /usr/local/cpanel/scripts/addpop script creates the email account.
  • post — Hook action code runs after the /usr/local/cpanel/scripts/addpop script creates the email account.



Column
bgColor#FFFFFF
width50%
borderStylenone


Panel
bgColor#F2F2F2
borderStylenone


Panel
bgColor#FFFFFF
borderStylenone


Section


Column
width40%

Action Code Runs As:


Column

test



Section


Column
width40%

Blocking Attribute:


Column



Section


Column
width40%

Escalate Privileges Attribute:


Column






Returns

This event does not return output.

delpop


Section


Column
width50%


Panel
bgColor#FFFFFF
borderStylenone


Note
titleNote:

We introduced this standardized hook in cPanel & WHM version 80.

This event takes place when the /usr/local/cpanel/scripts/delpop script deletes the email account.

Available Stages:

  • pre — Hook action code runs before the /usr/local/cpanel/scripts/delpop script deletes the email account.
  • post — Hook action code runs after the /usr/local/cpanel/scripts/delpop script deletes the email account.



Column
bgColor#FFFFFF
width50%
borderStylenone


Panel
bgColor#F2F2F2
borderStylenone


Panel
bgColor#FFFFFF
borderStylenone


Section


Column
width40%

Action Code Runs As:


Column

root




Section


Column
width40%

Blocking Attribute:


Column



Section


Column
width40%

Escalate Privileges Attribute:


Column






Returns

This event does not return output.