« Return to FAQ Database

How to create a custom external hook

Page viewable without login code example:



public static function link_public($job_id){
        return full_link(_EXTERNAL_TUNNEL_REWRITE.'m.job/h.public/i.'.$job_id);
    }
public static function link_public_custom($job_id){
        return full_link(_EXTERNAL_TUNNEL_REWRITE.'m.job/h.custom/i.'.$job_id);
    }

public function external_hook($hook){

        switch($hook){
            case 'public':
                   // display "public" hook html content here.
                   break;
            case 'custom':
                   // display "custom" hook html content here.
                   break;
           }
}



This FAQ Entry was created on: 2012-12-01 09:52:37
This FAQ Entry was last updated on: 0000-00-00 00:00:00