Skip to content

Commit

Permalink
add config value and additional info on plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Mar 1, 2013
1 parent 48f75dc commit d279ebf
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions plugins/restapi_test.php
Expand Up @@ -5,10 +5,30 @@
*/
class restapi_test extends phplistPlugin {

var $name = "RESTAPI Test";
public $name = "RESTAPI Test";
public $description = 'Functionality tests for the REST API plugin for phpList';
public $topMenuLinks = array(
'main' => array('category' => 'develop'),
);
public $settings = array(
"restapi_test_login" => array (
'value' => 'admin',
'description' => 'Login name for testing',
'type' => "text",
'allowempty' => 0,
'category'=> 'develop',
),
"restapi_test_password" => array (
'value' => 'phplist',
'description' => 'Login password for testing',
'type' => "text",
'category'=> 'develop',
),
);

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

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

}
?>

0 comments on commit d279ebf

Please sign in to comment.