<?php
/**
* 2017 - Keyrnel SARL
*
* NOTICE OF LICENSE
*
* The source code of this module is under a commercial license.
* Each license is unique and can be installed and used on only one shop.
* Any reproduction or representation total or partial of the module, one or more of its components,
* by any means whatsoever, without express permission from us is prohibited.
* If you have not received this module from us, thank you for contacting us.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author    Keyrnel
* @copyright 2017 - Keyrnel SARL
* @license   commercial
* International Registered Trademark & Property of Keyrnel SARL
*/

if (!defined('_PS_VERSION_')) {
    exit;
}

function upgrade_module_1_34($object)
{
    // Install Meta
    $meta = new Meta();
    $meta->page = 'module-'.$object->name.'-page';
    $meta->configurable = 1;
    $meta->title[Context::getContext()->language->id] = $object->name;
    $meta->description[Context::getContext()->language->id] = $object->description;
    $meta->url_rewrite[Context::getContext()->language->id] = $object->name;
    $meta->add();

    return true;
}
