it would be great if I could add a custom header and footer field to the block with an input filter.

Comments

sanguis’s picture

Title: text_select heder and footer fields » text_select header and footer fields

correcting title

devin carlson’s picture

Status: Active » Closed (won't fix)

This should now be easy enough to do in a custom module now that #1735244: Convert block content to a render array has been fixed.

function hook_block_view_alter(&$data, $block) {
  // Add some text before and after all blocks provided by the Twitter Block module.
  if (is_array($data['content']) && $block->module == 'twitter_block') {
    $data['content']['#prefix'] = '<p>' . t('Some text before the block content.') . '</p>';
    $data['content']['#suffix'] = '<p>' . t('Some text afterthe block content.') . '</p>';
  }
}