<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_AdminNotification
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <modules>
        <Mage_AdminNotification>
            <version>1.0.0</version>
        </Mage_AdminNotification>
    </modules>

    <global>
        <models>
            <adminnotification>
                <class>Mage_AdminNotification_Model</class>
                <resourceModel>adminnotification_mysql4</resourceModel>
            </adminnotification>
            <adminnotification_mysql4>
                <class>Mage_AdminNotification_Model_Mysql4</class>
                <entities>
                    <inbox>
                        <table>adminnotification_inbox</table>
                    </inbox>
                </entities>
            </adminnotification_mysql4>
        </models>
        <helpers>
            <adminnotification>
                <class>Mage_AdminNotification_Helper</class>
            </adminnotification>
        </helpers>
        <resources>
            <adminnotification_setup>
                <setup>
                    <module>Mage_AdminNotification</module>
                </setup>
            </adminnotification_setup>
        </resources>
        <blocks>
            <productalert>
                <class>Mage_AdminNotification_Block</class>
            </productalert>
        </blocks>
    </global>

    <adminhtml>
        <translate>
            <modules>
                <Mage_AdminNotification>
                    <files>
                        <default>Mage_AdminNotification.csv</default>
                    </files>
                </Mage_AdminNotification>
            </modules>
        </translate>
        <events>
            <controller_action_predispatch>
                <observers>
                    <adminnotification>
                        <class>adminnotification/observer</class>
                        <method>preDispatch</method>
                    </adminnotification>
                </observers>
            </controller_action_predispatch>
        </events>
        <layout>
            <updates>
                <adminnotification>
                    <file>adminnotification.xml</file>
                </adminnotification>
            </updates>
        </layout>
    </adminhtml>

    <default>
        <system>
            <adminnotification>
                <feed_url>notifications.magentocommerce.com/community/notifications.rss</feed_url>
                <popup_url>widgets.magentocommerce.com/notificationPopup</popup_url>
                <severity_icons_url>widgets.magentocommerce.com/%s/%s.gif</severity_icons_url>
                <use_https>0</use_https>
                <frequency>1</frequency>
                <last_update>0</last_update>
            </adminnotification>
        </system>
    </default>
</config>
