public static function batchDelete() { $result = lC_Image_groups_Admin::batchDelete($_GET['batch']); if (isset($result['namesString']) && $result['namesString'] != null) { } else { $result['rpcStatus'] = RPC_STATUS_SUCCESS; } echo json_encode($result); }
public static function batchDelete($batch) { global $lC_Language; $lC_Language->loadIniFile('image_groups.php'); $result = array(); $result['namesString'] = ''; foreach ($batch as $id) { if ($id == DEFAULT_IMAGE_GROUP_ID) { $gData = lC_Image_groups_Admin::getData($id); $result['namesString'] .= $gData['title'] . ' (' . $lC_Language->get('default') . ')'; } else { lC_Image_groups_Admin::delete($id); } } return $result; }