3 class oauthconsumerPlugin extends ForgeAuthPlugin {
5 public function __construct() {
7 $this->ForgeAuthPlugin() ;
9 $this->name = 'oauthconsumer';
10 $this->text = 'OAuth Consumer'; // To show in the tabs, use...
11 $this->_addHook("user_personal_links");//to make a link to the user's personal part of the plugin
12 $this->_addHook("usermenu");
13 $this->_addHook("userisactivecheckbox"); // The "use ..." checkbox in user account
14 $this->_addHook("userisactivecheckboxpost"); //
19 global $G_SESSION,$HTML;
20 $text = $this->text; // this is what shows in the tab
21 if ($G_SESSION->usesPlugin($this->name)) {
22 echo $HTML->PrintSubMenu (array ($text), array ('/plugins/oauthconsumer/index.php') );