'files', 'file' => 'Image', 'title' => 'Image', 'icon' => '', 'icon_method' => 'getThumbnail', 'view' => 'imageview', 'edit' => 'imageedit', 'task' => 0, 'type' => 'image' ) ); register_pages('files', array( 'Pages' => array( array( 'id' => 'myfolder', 'title' => 'My folder', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'answercontents', 'title' => 'Answers', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'taskcreator', 'title' => 'Task creator', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'foldercontents', 'title' => 'Folder contents', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'taskcollector', 'title' => 'Ülesanded', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'assignresource', 'title' => 'Anna', 'group' => 'assignments', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'answers', 'title' => 'Vastused', 'group' => 'answers', 'roles' => array('authenticated'), 'valid' => array() ) ), 'Folder' => array( array( 'id' => 'new_folder_form', 'title' => 'New folder', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'edit_folder_form', 'title' => 'Edit folder', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array('validate_ownership') ), array( 'id' => 'folderview', 'title' => 'Folder', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ) ), 'Image' => array( array( 'id' => 'new_image_form', 'title' => 'Upload image', 'group' => 'myfolder', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'imageview', 'title' => 'Image', 'group' => 'image', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'imageedit', 'title' => 'Edit image', 'group' => 'image', 'roles' => array('authenticated'), 'valid' => array() ) ) ) ); register_actions('files', array( 'Pages' => array( array( 'id' => 'goto_create_task', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'assign_resource', 'roles' => array('authenticated'), 'valid' => array() ), array( 'id' => 'foldercontent_delete', 'roles' => array('authenticated'), 'valid' => array() ) ), 'Folder' => array( array( 'id' => 'folder_handler', 'roles' => array('authenticated'), 'valid' => array() ), ), 'Image' => array( array( 'id' => 'image_handler', 'roles' => array('authenticated'), 'valid' => array() ) ), ) ); register_menus(array( array( 'title' => 'Home folder', 'group' => 'myfolder', 'page' => 'myfolder', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array('isinhome', 'asd') ), array( 'title' => 'New image', 'group' => 'myfolder', 'page' => 'new_image_form', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ), array( 'title' => 'New folder', 'group' => 'myfolder', 'page' => 'new_folder_form', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ), array( 'title' => 'New task', 'group' => 'myfolder', 'page' => 'taskcreator', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ), array( 'title' => 'Edit', 'group' => 'image', 'page' => 'imageedit', 'menu' => 'leftmenu', 'roles' => array('authenticated'), 'valid' => array() ) ) ); ?>