function custom_block_test_custom_block_update

Implements hook_custom_block_update().

File

drupal/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module, line 57
A dummy module for testing custom block related hooks.

Code

function custom_block_test_custom_block_update(CustomBlock $custom_block) {

  // Determine changes on update.
  if (!empty($custom_block->original) && $custom_block->original->info->value == 'test_changes') {
    if ($custom_block->original->info->value != $custom_block->info->value) {
      $custom_block->info->value .= '_update';
    }
  }
}