Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#5 | 495964_D6.patch | 660 bytes | jhodgdon |
#1 | 495964.patch | 652 bytes | jhodgdon |
Comments
Comment #1
jhodgdonThanks 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.
Comment #2
jhodgdonComment #3
Dries CreditAttribution: Dries commentedCommitted. Thanks!
Comment #4
jhodgdonNeeds 6.x port as well.
Comment #5
jhodgdonHere 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...
Comment #6
Gábor HojtsyThanks, committed to Drupal 6 too.