Quantcast
Viewing all articles
Browse latest Browse all 4243

Plugin - Add link to menu (2 replies)

Quick question: when creating a plugin for the "Settings" area, how do you tell it which heading to fall under? I currently have the following:

	public function getListHooksRegistered()
	{
		return array( 
			'AssetManager.getJsFiles' => 'getJsFiles',
			'AssetManager.getCssFiles' => 'getCssFiles',
			'AdminMenu.add' => 'addMenu',
		);
	}

	function addMenu()
	{
		Piwik_AddAdminMenu('Log Folder',
							array('module' => 'LogFolders', 'action' => 'index'),
							Piwik::isUserIsSuperUser(),
							$order = 1);
	}

Which puts "Log Folder" under the Settings heading, but I want to put it under the Manage heading. Tried looking through some of the other plugins but I wasn't seeing much that lead me to an answer.

Thanks!

Viewing all articles
Browse latest Browse all 4243

Trending Articles