Jump to content

Call a module function in hook


mar3ck

Recommended Posts

Hello everyone,

 

i'm developping my own ispconfig3 provisionning module.

i have a hook in "include/hooks" which must create an hosting in ispconfig3 as soon as a domain is created. i want to call the add_account function from the isconfig3 for avoiding duplicate code but i don't find a way to do it !

can you give me some advice ??

Link to comment
Share on other sites

Not entirely sure I'm following what you want to do. Let me see if I have it straight. You created a hook that gets executed when someone purchases a domain from you. That hook communicates with Ispconfig3 to add their hosting/provisioning to Ispconfig3.

 

From that point you want Ispconfig3 to communicate back to WHMCS and execute the add_account hook? I assume add_account is something you coded?

 

Let me know if I'm on the right track.

 

 

-- Jess

Link to comment
Share on other sites

Hi, sorry for the late !

 

not exactely.

i have a server module called ispconfig3 with the function ispconfig3_createAccount (not add_account) and i want to call this function from the hook.

i do this to the purpose to have the code communicating with ispconfig3 only in the server module ispconfig3.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated