Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:97:\"array_map() [<a href=\'function.array-map\'>function.array-map</a>]: Argument #2 should be an array\";s:5:\"%file\";s:67:\"/homepages/23/d181601631/htdocs/Drupal/modules/system/system.module\";s:5:\"%line\";i:1015;}', 3, '', 'http://www.drupalguides.net/Guides/6/blocks', '', '54.224.50.28', 1508258890) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:107:\"array_keys() [<a href=\'function.array-keys\'>function.array-keys</a>]: The first argument should be an array\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/6/blocks', '', '54.224.50.28', 1508258890) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:39:\"Invalid argument supplied for foreach()\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/6/blocks', '', '54.224.50.28', 1508258890) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128
DrupalGuides.net - Guides and tutorials for Drupal
  • warning: array_map() [function.array-map]: Argument #2 should be an array in /homepages/23/d181601631/htdocs/Drupal/modules/system/system.module on line 1015.
  • warning: array_keys() [function.array-keys]: The first argument should be an array in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
  • warning: Invalid argument supplied for foreach() in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
Title Nid
Inserting blocks into content i.e. pages, blogs, entries etc... This guide describes how to display content in a block using PHP. This may be useful if you want to stack snippets of content each contained in their own block. This tutorial does require some familiarity with SQL and PHP. 27
Basic guide to blocks in Drupal This is an introduction to blocks in Drupal. Blocks allow you to display content in different areas of the screen and can be used to customise the look of your site. This guide explains the basics of using and customising blocks in Drupal. 47