<?php

$config = array(
    'mandatory'                     => false,
    'recommended'                   => true,
    'description'                   => 'Knowledge Base module.',
    'navButtonLabel'                => /*T*/'Knowledge Base'/*/T*/,
    // 'versions'   => array(version => array(has upgrade sql file?, has upgrade php script?))
    'versions'                      => array(
        '0.9.0' => array(false, false),
        '0.9.1' => array(false, false),
        '0.9.2' => array(true, false),
        '0.9.3' => array(true, false),
        '0.9.4' => array(false, false),
        '1.0.0' => array(false, false),
        '1.0.1' => array(false, false),
    ),
    'dependencies'                  => array('newedge' => '3.1.1'),
    'hasSchemaFile'                 => true,
    'hasInitialData'                => true,
    'hasUninstallSQLScript'         => false,
    'hasUninstallPHPScript'         => false,
    'order'                         => 5.5,
    'settingTypes'                  => array(12),
    'defaultView'                   => 'KB_MainView',
    'actions'                       => array(
        'KB_SaveArticle'            => 'knowledgebase_add_article',
        'KB_SaveCategory'           => 'knowledgebase_add_category',
        'KB_DeleteArticle'          => 'knowledgebase_manageArticles',
        'KB_MarkArticleRead'        => 'knowledgebase_view',
        'KB_DeleteCategory'         => 'knowledgebase_manageCategories',
        'KB_RateArticle'            => '',
        'KB_AddComment'             => '',        
        'KB_DeleteComment'          => 'knowledgebase_manageComments',
        'KB_ApproveComment'         => 'knowledgebase_manageComments',
        'KB_UpdateComment'          => 'knowledgebase_manageComments',
        'KB_DeleteArticleAttachment'=> 'knowledgebase_manageArticles',
        'KB_GetAttachment'          => 'knowledgebase_viewArticle',
        'KB_PublishArticle'         => 'knowledgebase_manageArticles',
        'KB_UpdateComment_Async'    => '',
        'KB_DeleteComment_Async'    => '',
        'KB_MoveArticles'           => 'knowledgebase_manageArticles',
        
    ),
    'views'         => array(
        // first view is the default one, and has to have the permission module_view
        'KB_MainView'                       => '',
        'KB_View'                           => '',
        'KB_AutoSuggestion'                 => '',        
        'KB_manageArticlesView'             => 'knowledgebase_manageArticles',                
        'KB_AddArticle'                     => 'knowledgebase_add_article',
        'KB_manageCategoriesView'           => 'knowledgebase_manageCategories',        
        'KB_AddCategory'                    => 'knowledgebase_add_category',
        'KB_manageCommentsView'             => 'knowledgebase_manageComments',
        'KB_editComments'                   => 'knowledgebase_manageComments',        
        'KB_viewArticle'                    => '',
        'KB_CategoriesView'                 => '',
        'KB_SearchArticlesView'             => '',
        'PublicSection_LatestArticles'      => '',
        'PublicSection_ArticlesSearch'      => '',
        'Snapshot_Articles'                 => 'knowledgebase_view',        
        'KB_ArticlePopup'                   => '',
        'KB_TicketTypeArticles'             => 'knowledgebase_view',
    ),
    'hooks'         => array(
        'Settings'                      => array(   'Knowledgebase_Settings'  => array(
                                                    'internalName'            => 'knowledgebase',
                                                    'tabLabel'                => /*T*/'Knowledgebase'/*/T*/,
                                                    'order'                   => 5,
                                                    'intSettingsType'         => 5
                                                    ),
                            ),
        'Snapshots'                     => array(   'Snapshot_Articles' => array(
                                                                            'tabLabel' => /*T*/'Articles'/*/T*/
                                                                            ),
                                            ),
        'Events'                        => array(),
    ),
);
?>
