You are here

function finder::block in Finder 7.2

Finder block.

Return value

Render array of a finder block.

File

includes/finder.inc, line 387
finder.inc

Class

finder
An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.

Code

function block() {
  module_invoke_all('finder_block', $this);
  $this->display = 'block';
  return array(
    'subject' => check_plain($this->title),
    'content' => array(
      '#prefix' => '<div id="finder-block-' . $this->name . '" class="finder-block">',
      'finder' => $this
        ->render(),
      '#suffix' => '</div>',
    ),
  );
}