/**
  * process update hook, sortable
  */
 public function ajaxProcessupdateHook()
 {
     $result = array();
     $pagemeta = Tools::getValue('pagemeta');
     $datahooks = Tools::getValue('datahook');
     $datahooks = Tools::jsonDecode($datahooks, true);
     if ($datahooks && is_array($datahooks) && sizeof($datahooks) > 0) {
         foreach ($datahooks as $hookmodules) {
             $res = array();
             $hookColumn = key($hookmodules);
             $hookName = 'display' . ucfirst(trim($hookColumn)) . 'Column';
             $res['status'] = OvicLayoutControl::registerSidebarModule($pagemeta, $hookColumn, Tools::jsonEncode($hookmodules[$hookColumn]), $this->context->shop->id);
             $res['hookname'] = $hookName;
             $result[] = $res;
         }
     }
     Tools::clearCache();
     die(Tools::jsonEncode($result));
 }