You are here

public function WsConfigType::enable in Web Service Data 7

API function to enabled this wsconfig type.

1 call to WsConfigType::enable()
WsConfigType::isDisabled in modules/wsconfig/wsconfig.entity.inc
API function to check if this wsconfig type is disabled.

File

modules/wsconfig/wsconfig.entity.inc, line 462
Entity classes

Class

WsConfigType
The class used for wsconfig type entities

Code

public function enable($degraded = FALSE) {
  unset($this->data['degraded']);
  unset($this->data['disabled']);
  $reason = '';
  if ($degraded) {
    $reason = '  ' . t('Automatically re-enabling previously degrated service.');
  }
  watchdog('wsconfig', t('WSConfig Type %label (%type) was enabled.', array(
    '%label' => $this->label,
    '%type' => $this->type,
  )) . $reason);
  $this
    ->save();
}