Line 1846 of modules/system/system.admin.inc file.

/**
 * This function formats the content of an administrative block.
 *
 * @param $block
 *   An array containing information about the block. It should
 *   include a 'title', a 'description' and a formatted 'content'.
 * @ingroup themeable
 */
function theme_admin_block_content($content) {
  if (!$content) {
    return '';
  }

  if (system_admin_compact_mode()) {
... etc. etc.
...

Not $block, then $content. It's caused a mistake on http://api.drupal.ru/api/function/theme_admin_block_content/6

CommentFileSizeAuthor
#5 495964_D6.patch660 bytesjhodgdon
#1 495964.patch652 bytesjhodgdon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Project: Documentation » Drupal core
Version: » 7.x-dev
Component: Correction/Clarification » documentation
FileSize
652 bytes

Thanks for your detailed report!

Issues with documentation in the core of Drupal, shown on api.drupal.org, belongs in the Drupal issue queue, not Documentation (which is for problems in the Handbook documentation on drupal.org). So I have moved it to the main Drupal issue queue.

Link to main Drupal API site (rather than Russian):
http://api.drupal.org/api/function/theme_admin_block_content/6

The error also exists in Drupal 7:
http://api.drupal.org/api/function/theme_admin_block_content/7

Here is a patch to fix the error shown above in D7. If it's committed, should also be done in D6.

jhodgdon’s picture

Status: Active » Needs review
Dries’s picture

Status: Needs review » Fixed

Committed. Thanks!

jhodgdon’s picture

Version: 7.x-dev » 6.x-dev
Status: Fixed » Patch (to be ported)

Needs 6.x port as well.

jhodgdon’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
FileSize
660 bytes

Here is the D6 patch. It's exactly the same as the D7 patch except line numbers, so I've taken the liberty of marking it "reviewed". Hope that is OK. Please committ -- trivial doc fix...

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to Drupal 6 too.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.