array( array( 'id' => 'mathview', 'title' => 'Math View', 'group' => 'math', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'mathedit', 'title' => 'Math Edit', 'group' => 'math', 'roles' => array('authenticated'), 'valid' => array('hasanswers') ), array( 'id' => 'mathanswer', 'title' => 'Math Answer', 'group' => '', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'mathanswers', 'title' => 'Math Answers', 'group' => 'math', 'roles' => array('authenticated'), 'valid' => array() ), ) ) ); */ /* * type * pluginid * file * */ /* register_types(array( 'pluginid' => 'math', 'file' => 'Calculation', 'title' => 'Math', 'icon' => 'plugins/math/math.gif', 'icon_method' => NULL, 'task' => 1, 'type' => 'math' ) ); */ /* register_types(array( 'pluginid' => 'math', 'file' => 'MathViews', 'title' => 'Math', 'icon' => 'plugins/math/math.gif', 'icon_method' => NULL, 'view' => 'mathview', 'answer' => 'mathanswer', 'edit' => 'mathedit', 'task' => 1, 'type' => 'math' ) ); */ /* register_actions('math', array( 'MathViews' => array( array( 'id' => 'save_math', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'answer_math', 'roles' => array('authenticated'), 'valid' => array() ), ) ) ); register_menus(array( array( 'title' => 'View', 'group' => 'math', 'page' => 'view', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ), array( 'title' => 'Edit', 'group' => 'math', 'page' => 'edit', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array('hasanswers') ), array( 'title' => 'Answers', 'group' => 'math', 'page' => 'answers', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ) ) ); */ ?>