You are here

function insert_block_filter_tips in Insert Block 6

Same name and namespace in other branches
  1. 5 insert_block.module \insert_block_filter_tips()

Implementation of hook_filter_tips().

File

./insert_block.module, line 22
Insert blocks into the body of a node

Code

function insert_block_filter_tips($delta, $format, $long = FALSE) {
  if ($long) {
    return t('<a name="filter-insert_block"></a>You may use [block:<em>module</em>=<em>delta</em>] tags to display the contents of block <em>delta</em> for module <em>module</em>. To discover module names and deltas, visit admin/build/block and hover over a block\'s configure link and look in your browser\'s status bar. The last "word" you see is the name of the module and the number following that is the delta. If you leave off the delta in an Insert Block tag, the default delta will be used.');
  }
  else {
    return t('You may use <a href="@insert_block_help">[block:<em>module</em>=<em>delta</em>] tags</a> to display the contents of block <em>delta</em> for module <em>module</em>.', array(
      "@insert_block_help" => url("filter/tips/{$format}", array(
        'fragment' => 'filter-insert_block',
      )),
    ));
  }
}