Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Modify Account Hook

Discussion in 'cPanel Developers' started by Snipehunter000, Nov 18, 2009.

  1. Snipehunter000

    Snipehunter000 Registered

    Joined:
    Nov 18, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    I am developing a centralized service that is automatically installed for Resellers when a reseller account is created in WHM by root and removed automatically when the reseller account is terminated. I didn't have any problems using the /scripts/postwwwacct and /scripts/prekillacct hooks to setup the service for each account however the setup is dependent on the domain on the account so I need to handle the event that the domain is changed using Modify Account. I looked for a hook for that event in the documentation but wasn't able to find one. Is there one I can use?
     
  2. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sorry for the delay, this somehow slipped under my radar.

    Unfortunately at this time this hook does not exist, however it would be handy. I plan on filing a feature request on this on your behalf.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Snipehunter000

    Snipehunter000 Registered

    Joined:
    Nov 18, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
  4. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Unfortunately no, CustomEventHandler only handles API1 and API2 requests which are used for the cpanel interface - WHM does not use these APIs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Snipehunter000

    Snipehunter000 Registered

    Joined:
    Nov 18, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Ah I see, is there any other way to tie into the saveedituser event without modifying the installation? Also how long typically does it take (ballpark estimate) for an update request to add that hook roll out?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice