Jump to content

how to use addons_html variable in addons?


mreza69

Recommended Posts

hi

I saw addons_html variable in clientareahome.tpl in all templates. it seems it is for use by addons to put their html codes in client area home page (like notifications). now I use it for my own addons by ClientAreaPage hook and it works, but when I use it for 2 addons only one of them will show. my sample code is:

 

function polls_hook_ClientAreaPage($vars){
   $html=array('addons_html'=>$vars['addons_html']);
   $html['addons_html'][]='blah blah');
   return $html;
}
add_hook("ClientAreaPage",1,"polls_hook_ClientAreaPage");

 

it seems when my first addon overwrite the addons_html variable, the changes don't pass to another one hook file!

now I wanna to know what is the standard way to put the addon html in addons_html variable? is there any hooks for this job?

 

regards

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