Files
newwalls.pl/modules/ph_simpleblog/upgrade/install-1.0.5.php
2024-12-17 13:43:22 +01:00

30 lines
889 B
PHP

<?php
/**
* Blog for PrestaShop module by Krystian Podemski from PrestaHome.
*
* @author Krystian Podemski <krystian@prestahome.com>
* @copyright Copyright (c) 2014-2016 Krystian Podemski - www.PrestaHome.com / www.Podemski.info
* @license You only can use module, nothing more!
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_5($object)
{
$object->registerHook('displayLeftColumn');
$object->registerHook('displayRightColumn');
$tab = new Tab();
$tab->name[Context::getContext()->language->id] = $object->l('Settings');
$tab->class_name = 'AdminSimpleBlogSettings';
$tab->id_parent = Tab::getIdFromClassName('AdminSimpleBlog');
$tab->module = $object->name;
$tab->add();
Configuration::updateValue('PH_BLOG_POSTS_PER_PAGE', '10');
Configuration::updateValue('PH_BLOG_FB_COMMENTS', '1');
return true;
}