Module information, exactly what it says on the tin

git-svn-id: file:///svn/phpbb/trunk@5306 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2005-11-18 22:16:59 +00:00
parent d6b2182c7e
commit 68e80ad2df
2 changed files with 57 additions and 0 deletions

View file

@ -967,4 +967,33 @@ function mcp_fork_topic($topic_ids)
} }
} }
/**
* @package module_install
*/
class mcp_main_info
{
function module()
{
return array(
'filename' => 'mcp_main',
'title' => 'MCP_MAIN',
'version' => '1.0.0',
'modes' => array(
'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => 'acl_m'),
'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m'),
'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m'),
'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?> ?>

View file

@ -742,4 +742,32 @@ function disapprove_post($post_id_list)
} }
} }
/**
* @package module_install
*/
class mcp_queue_info
{
function module()
{
return array(
'filename' => 'mcp_queue',
'title' => 'MCP_QUEUE',
'version' => '1.0.0',
'modes' => array(
'unapproved_topics' => array('title' => 'MCP_QUEUE_UNAPPROVED_TOPICS', 'auth' => 'acl_m_approve'),
'unapproved_posts' => array('title' => 'MCP_QUEUE_UNAPPROVED_POSTS', 'auth' => 'acl_m_approve'),
'reports' => array('title' => 'MCP_QUEUE_REPORTS', 'auth' => 'acl_m_approve'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?> ?>