public function Groups::delete in SimpleAds 8
File
- src/
Groups.php, line 145
Class
- Groups
- Groups utility class.
Namespace
Drupal\simpleadsCode
public function delete() {
if ($id = $this
->getId()) {
$group = $this
->load();
db_delete('simpleads_groups')
->condition('id', $id)
->execute();
drupal_set_message($this
->t('Group <em>@name</em> successfully delete.', [
'@name' => $group
->getGroupName(),
]));
}
}