Esempio n. 1
0
 protected function updatePositionsDnd()
 {
     if (Tools::getValue('cms_block_0')) {
         $positions = Tools::getValue('cms_block_0');
     } elseif (Tools::getValue('cms_block_1')) {
         $positions = Tools::getValue('cms_block_1');
     } else {
         $positions = array();
     }
     foreach ($positions as $position => $value) {
         $pos = explode('_', $value);
         if (isset($pos[2])) {
             OvicBlockCMSModel::updateCMSBlockPosition($pos[2], $position);
         }
     }
 }