You are here

function fieldblock_preprocess_block in Field as Block 7

Give fieldblocks a meaningful html id in spite of the hashed block deltas.

File

./fieldblock.module, line 224
Allow fields to be rendered in blocks.

Code

function fieldblock_preprocess_block(&$variables) {
  if ($variables['block']->module == 'fieldblock') {
    $variables['block_html_id'] = drupal_html_id('block-' . $variables['block']->fieldblock_name);
  }
}