function sharemessage_block_info in Share Message 7
Implements hook_block_info().
File
- ./
sharemessage.module, line 164 - New Sharing Module.
Code
function sharemessage_block_info() {
$sharemessages = entity_load('sharemessage', FALSE, array(
'block' => 1,
));
$blocks = array();
if (!empty($sharemessages)) {
foreach ($sharemessages as $sharemessage) {
$blocks[$sharemessage->name] = array(
'info' => $sharemessage->label,
'cache' => DRUPAL_NO_CACHE,
);
}
}
return $blocks;
}