public function LingotekProfile::delete in Lingotek Translation 7.7
File
- lib/
Drupal/ lingotek/ LingotekProfile.php, line 366 - Defines LingotekProfile
Class
- LingotekProfile
- A class wrapper for Lingotek Profiles
Code
public function delete() {
if (!$this
->isProtected()) {
if ($this
->getEntities()) {
throw new LingotekException('Unable to delete profile "@name": profile not empty.', array(
'@name' => $this
->getName(),
));
}
unset(self::$profiles[$this
->getId()]);
variable_set('lingotek_profiles', self::$profiles);
}
}