db_delete

Handy MYSQL delete operation for single record. It checks FK delete RESTRICT constraint, then SET deleted if it cannot be deleted

Parameters
string $table

Table name without prefix

#
array $condition = []

The array of condition for delete - field names and values, for example

#
boolean $softDelete = false

Soft delete or not

#
Returns
boolean

Returns TRUE on success or FALSE on failure