Jump to content

the addon module _output function is not echo'ing anything


clickstrum

Recommended Posts

I'm messing with the addonexample module that ships with WHMCS and tried changing the addonexample_output function to:

 

function addonexample_output($vars) {

echo "foobar";
/*
   $modulelink = $vars['modulelink'];
   $version = $vars['version'];
   $option1 = $vars['option1'];
   $option2 = $vars['option2'];
   $option3 = $vars['option3'];
   $option4 = $vars['option4'];
   $option5 = $vars['option5'];
   $LANG = $vars['_lang'];

   echo '<p>'.$LANG['intro'].'</p>
<p>'.$LANG['description'].'</p>
<p>'.$LANG['documentation'].'</p>';
*/
}

 

I'd expect it to return foobar in the admin addon area for the addon example, but it looks like there is no change (it looks like I haven't even changed anything).

 

I thought perhaps it was a cache issue, but if I make changes to the addonexample_config function, like in one of the name or description fields of the configarray, those changes show up when I refresh the page. I'm working on my issue here, but found I can't get this _output function to do anything.

 

My WHMCS version is 5.2.13.

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