HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How might I conditionally add a module in my plugin?

ddumontddumont ✭✭

I don't want it added in the dashboard... My dashboard is getting a bit cluttered already.

Best Answer

  • peregrineperegrine MVP
    edited July 2012 Accepted Answer

    i've got no thoughts on other way. what you said.

      if (!preg_match('/dashboard/',$Sender->SelfUrl))
                  $Sender->AddModule("SubscribeModule");
    
    

    get the buttonbar back - it was much easier to paste code.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    UnderDog

Answers

This discussion has been closed.