<?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_Rating
 * @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_Rating>
            <version>0.7.2</version>
        </Mage_Rating>
    </modules>
    <global>
        <models>
            <rating>
                <class>Mage_Rating_Model</class>
                <resourceModel>rating_mysql4</resourceModel>
            </rating>
            <rating_mysql4>
                <class>Mage_Rating_Model_Mysql4</class>
                <entities>
                    <rating>
                        <table>rating</table>
                    </rating>
                    <rating_store>
                        <table>rating_store</table>
                    </rating_store>
                    <rating_title>
                        <table>rating_title</table>
                    </rating_title>
                    <rating_entity>
                        <table>rating_entity</table>
                    </rating_entity>
                    <rating_option>
                        <table>rating_option</table>
                    </rating_option>
                    <rating_vote>
                        <table>rating_option_vote</table>
                    </rating_vote>
                    <rating_option_vote>
                        <table>rating_option_vote</table>
                    </rating_option_vote>
                    <rating_vote_aggregated>
                        <table>rating_option_vote_aggregated</table>
                    </rating_vote_aggregated>
                </entities>
            </rating_mysql4>
        </models>
        <resources>
            <rating_setup>
                <setup>
                    <module>Mage_Rating</module>
                </setup>
            </rating_setup>
        </resources>
        <blocks>
                <rating>
                    <class>Mage_Rating_Block</class>
                </rating>
        </blocks>
    </global>
    <frontend>
        <translate>
            <modules>
                <Mage_Rating>
                    <files>
                        <default>Mage_Rating.csv</default>
                    </files>
                </Mage_Rating>
            </modules>
        </translate>
    </frontend>

    <adminhtml>
        <translate>
            <modules>
                <Mage_Rating>
                    <files>
                        <default>Mage_Rating.csv</default>
                    </files>
                </Mage_Rating>
            </modules>
        </translate>
        <events>
            <catalog_product_delete_after_done>
                <observers>
                    <rating>
                        <class>rating/observer</class>
                        <method>processProductAfterDeleteEvent</method>
                    </rating>
                </observers>
            </catalog_product_delete_after_done>
        </events>
    </adminhtml>
</config>
