function mailing_list_block_info in Mailing List 7
Implement hook_block_info();
File
- ./
mailing_list.module, line 170 - Minimalistic mailing list module.
Code
function mailing_list_block_info() {
$block = array();
$lists = mailing_list_get();
foreach ($lists as $mlid => $list) {
$block[$mlid] = array(
'info' => t('Mailing list: @name', array(
'@name' => $list->name,
)),
);
}
return $block;
}