before_addon_load

Navigation:  Development > Function Reference > Common Callbacks >

before_addon_load

Previous pageReturn to chapter overviewNext page

Function execute before loading addon resource. See below example:
 

class Development_Callbacks extends appRain_Base_Modules_Callbacks
{
    public function before_addon_load($name = NULL)
    {
        switch ($name) {
        }
    }
}

 

 

This function receive addon name in $name parameter and add the value in side page <head> that we print. For example:
 
public function before_addon_load($name = NULL)
{
  switch ($name) {
      case 'commonresource':
          echo "<script type=\"text/javascript\"> alert('Hello World');</script>";
   }
}

 

Related Functions: after_addon_load