added default configuration value for dashproducts

This commit is contained in:
Vincent Augagneur
2013-11-13 09:27:48 +01:00
parent 55fa826525
commit 582ad68875
+5
View File
@@ -42,6 +42,11 @@ class Dashproducts extends Module
public function install()
{
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_LAST_ORDER', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_BEST_SELLER', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_MOST_VIEWED', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_TOP_SEARCH', 10);
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardData'))
return false;
return true;