You are here

public static function EntityHelper::deleteMultiple in Helper 7

File

lib/EntityHelper.php, line 516

Class

EntityHelper

Code

public static function deleteMultiple($entity_type, array $ids) {
  $function = $entity_type . '_delete_multiple';
  if (function_exists($function)) {
    return $function($ids);
  }
  else {
    return entity_delete_multiple($entity_type, $ids);
  }
}