I am writing a mcp module, but it should be listed and managed by admins only, so how can I set the auth? and the $id, I saw an example in the wiki, but it is confusing.
Code: Select all
class mcp_page_name_info
{
function module()
{
return array(
'filename' => 'mcp_page_name',
'title' => 'MCP_PAGE_TITLE',
'version' => '1.2.3',
'modes' => array(
'mode1' => array('title' => 'MCP_PAGE_MODE_ONE_TITLE', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_PAGE_TITLE')),
'mode2' => array('title' => 'MCP_PAGE_MODE_TWO_TITLE', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_PAGE_TITLE')),
),
);
}
function install()
{
}
function uninstall()
{
}
}