Skip to content

Commit

Permalink
Use plugin page instead of adding a menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Apr 14, 2016
1 parent c9f302d commit 2ce2c79
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ImportUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,11 @@ class ImportUsersPlugin extends MantisPlugin
function register() {
$this->name = plugin_lang_get( 'title' );
$this->description = plugin_lang_get( 'description' );
$this->page = 'import_users_page_init';
$this->version = '1.0';
$this->requires = array( 'MantisCore' => '1.3.0' );
$this->author = 'MantisHub';
$this->contact = 'http://www.mantishub.com';
$this->url = 'http://www.mantishub.com';
}

function hooks() {
return array(
'EVENT_MENU_MANAGE' => 'csv_import_menu',
);
}

function csv_import_menu() {
return array(
'<a href="' . plugin_page( 'import_users_page_init' ) . '">' . plugin_lang_get( 'import_users' ) . '</a>',
);
}
}

0 comments on commit 2ce2c79

Please sign in to comment.