You are here

function mailing_list_block_view in Mailing List 7

Implement hook_block_view();

File

./mailing_list.module, line 184
Minimalistic mailing list module.

Code

function mailing_list_block_view($delta = '') {
  $list = mailing_list_load($delta);
  if (!$list) {
    return;
  }
  $block = array(
    'subject' => check_plain($list->name),
    'content' => drupal_get_form('mailing_list_subscription_form_' . $delta),
  );
  return $block;
}