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!

WHM DNS Functions -> Add/Delete DNS Zone hooks, are there any ?

Discussion in 'cPanel Developers' started by Nautilus, Mar 13, 2014.

  1. Nautilus

    Nautilus Registered

    Joined:
    Mar 13, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am searching way to hook WHM Zone add and delete operations.
    Information I need is which zone is added or removed. There is quite
    easy way to do this for addondomain in cPanel (Cpanel::Api2::AddonDomain::addaddondomain).
    I wonder if there is any similar hook system for WHM zones ?
    Or is there any other way to detect when zone is added or removed ?
    Or, is it even impossible without being "official" cPanel developer?
    I am using the latest version of WHM&cPanel.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Standardized hooks and hookable events are documented here:

    Standardized Hooks
    cPanel - Hookable Events

    Could you elaborate a little more on what action you want to occur when a zone is added or deleted? This might generate more user-feedback on the thread.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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