function announcements_render_block

4.x announcements.module announcements_render_block($delta)
5.x announcements.module announcements_render_block($delta)

Called when it is time to render the block in question. Expected to return an array which looks like this: array( "title" => "Some title goes here.", "body" => "this is the primary body of the block", );

File

modules/announcements/announcements.module, line 142

Code

function announcements_render_block($delta) {

  $rtn = array();

  if ($delta == "primary") {

    fp_add_css(fp_get_module_path("announcements") . "/css/announcements.css");

    $rtn ["title"] = t("Announcements");
    $rtn ["body"] = announcements_render_announcements();
  }


  return $rtn;

}