Skip to main content
replaced http://us2.php.net with https://www.php.net
Source Link

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. ImplodeImplode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicatedcan get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.
added 115 characters in body
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.

$block['content'] should be an array, like in the example for hook_block_view:

$block['content'] = array(
    '#theme' => 'feed_icon',
    '#url' => 'rss.xml',
    '#title' => t('Syndicate'),
  );

For more examples, see Examples for Developers project, block_example module.

If you are putting array there, it must be a renderable array. If it's not, then either:

  1. Implode it into string. With nested arrays, it can get a bit complicated.
  2. Put it as an element in $block['content'] array, and set $block['content']['#theme'] element to something that can theme it. More complicated, but also more versatile and cleaner solution.
added 275 characters in body
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112
Loading
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112
Loading