Skip to content

Commit

Permalink
add some additional information about the plugin, and the way to embe…
Browse files Browse the repository at this point in the history
…d it in the phplist menu
  • Loading branch information
michield committed Mar 1, 2013
1 parent 07e72fb commit 48f75dc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/restapi.php
Expand Up @@ -5,10 +5,15 @@
*/
class restapi extends phplistPlugin {

var $name = "RESTAPI";
public $name = "RESTAPI";
public $description = 'Implements a REST API interface to phpList';
public $topMenuLinks = array(
'main' => array('category' => 'system'),
);

function restapi() {
$this->coderoot = dirname(__FILE__) . '/restapi/';
parent::phplistplugin();
$this->coderoot = dirname(__FILE__) . '/restapi/';
}

function adminmenu() {
Expand All @@ -18,4 +23,3 @@ function adminmenu() {
}

}
?>

0 comments on commit 48f75dc

Please sign in to comment.