The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  3. Snipehunter000

    Snipehunter000 Registered

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

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  5. Snipehunter000

    Snipehunter000 Registered

    Joined:
    Nov 18, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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