finder_block_view

  1. finder
    1. 7.x-1.x
Versions
7.x-1.x finder_block_view($delta = '')

Implements hook_block_view().

See also

hook_block_view()

Code

./finder.module, line 784

<?php
function finder_block_view($delta = '') {
  if (user_access('use finder')) {
    $finder_id = str_replace('finder_', '', $delta);
    $finder = finder_load($finder_id);
    if ($finder) {
      finder_invoke_finderapi($finder, 'finder_block');
      $block = array(
        'subject' => check_plain($finder->title), 
        'content' => array(
          '#theme' => 'finder_block', 
          '#finder' => $finder,
        ),
      );
      return $block;
    }
  }
}
?>

Comments

NxSLTxbbOr

Wow! Great thniikng! JK

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.