You are here

public function FacebookPublicationEntity::save in Facebook Autopost 7

Save the entity.

Overrides Entity::save

File

fb_autopost_entity/fb_autopost_entity.module, line 535
Module implementation file

Class

FacebookPublicationEntity
The class used for Facebook publication entities.

Code

public function save() {

  // Care about setting created and changed values. But do not automatically
  // set a created values for already existing Facebook publications.
  if (empty($this->created) && (!empty($this->is_new) || !$this->fbpid)) {
    $this->created = REQUEST_TIME;
  }
  $this->changed = REQUEST_TIME;
  parent::save();
}