Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    2

    Default Account and Package Hook in WHM

    Hi yeah.

    I am looking for a hook for the event of update for account/package, and package upgrade, for WHM.
    The closest type of hook I find is script hook, but I do not see any hook for the related events other than account creation.

    I turned to the sample CustomEventHandler to check for APIs called during the events mentioned.
    And turns out that not even EvenHandler is called (I placed a STDERR print in EvenHandler__Init() ).

    Can anyone help ?
    Thanks yeah.

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    That's correct.

    1) there is not a script hook for this administrative action (package management)

    2) CustomEventHandler is only called for API1 and API2 calls; WHM's package management does not use API1 or API2 calls. It uses it's own code path.

    I can't think of a way to hook the package management functionality in WHM or the XML-API. The only think I can suggest, at this time, is to place a feature request in the Feature Request Forum.

    Best Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Replies: 4
    Last Post: 03-02-2011, 01:01 AM
  2. whm hook?
    By bitter_ in forum cPanel Developers
    Replies: 3
    Last Post: 07-13-2010, 10:14 AM
  3. Modify Account Hook
    By Snipehunter000 in forum cPanel Developers
    Replies: 4
    Last Post: 12-14-2009, 08:44 AM
  4. You are not allowed to create an account with the package <package>,
    By DrYurich in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-16-2007, 01:14 PM
  5. package a single plesk account with its account password
    By anand in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-21-2006, 09:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube