You are here

public function EventHandler::isChanged in Services Client 7.2

Determine weather object has been changed by editing configuration and not which isn't stored in permanent storage.

Return value

bool TRUE if is changed.

File

include/event.inc, line 493

Class

EventHandler
Event handler plugin.

Code

public function isChanged() {
  $item = $this
    ->getEvent();
  return md5(json_encode($item)) !== md5(json_encode(services_client_get_event($item->name)
    ->getEvent()));
}