Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2009
    Posts
    3

    Default Modify Account Hook

    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. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    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.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2009
    Posts
    3

    Default

    Thank you. Couldn't I use the CustomEventHandler to trap the event for it and call it that way. I tried getting the module and event information using the instructions in this post of yours but couldn't ever get anything to write to the log.

    http://forums.cpanel.net/f42/looking...rs-130545.html

  4. #4
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    Unfortunately no, CustomEventHandler only handles API1 and API2 requests which are used for the cpanel interface - WHM does not use these APIs.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2009
    Posts
    3

    Default

    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?

Similar Threads & Tags
Similar threads

  1. Replies: 4
    Last Post: 03-02-2011, 02:01 AM
  2. Any updates on modify acct hook?
    By Svintoo in forum cPanel Developers
    Replies: 4
    Last Post: 02-25-2011, 02:13 PM
  3. Account and Package Hook in WHM
    By yingfan in forum cPanel Developers
    Replies: 1
    Last Post: 10-08-2010, 05:11 PM
  4. modify acct hook
    By blargman in forum cPanel Developers
    Replies: 0
    Last Post: 02-03-2010, 09:54 AM
  5. Modify an Account
    By cosmin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-08-2002, 04:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube