You are here

function entityform_block_change_name in Entityform block 7

Update block name if the entity form's machine readable name has changed.

We're using block deltas instead of bid.

1 call to entityform_block_change_name()
entityform_block_submit in ./entityform_block.module
Custom submit function.

File

./entityform_block.module, line 159
Render any entity form into a block.

Code

function entityform_block_change_name($original_type, $new_type) {
  $query = db_update('block')
    ->fields(array(
    'delta' => $new_type,
  ))
    ->condition('delta', $original_type)
    ->execute();
}