You are here

function entity_block_save in Entity Blocks 7

Saves an entity block.

Parameters

EntityBlock $entity.: The full EntityBlock object to save.

Return value

int SAVED_NEW or SAVED_UPDATED depending on the operation performed.

1 call to entity_block_save()
entity_block_form_submit in ./entity_block.module
Submit handler for entity_block_form form.

File

./entity_block.module, line 445
Display entities (via view modes) as fieldable blocks.

Code

function entity_block_save(&$entity) {
  return entity_get_controller('entity_block')
    ->save($entity);
}