You are here

function _insert_block_tips in Insert Block 7

1 string reference to '_insert_block_tips'
insert_block_filter_info in ./insert_block.module
Implementation of hook_filter_info().

File

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

Code

function _insert_block_tips($filter, $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->format}", array(
        'fragment' => 'filter-insert_block',
      )),
    ));
  }
}