From b1001811d95d5b4dc7ca4916fc74f773106ac9f0 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 30 Mar 2015 22:03:05 -0400 Subject: Issue #2432619 by vbouchet, jhodgdon, joachim: block_load() should state it's not suitable for general consumption --- modules/block/block.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/block') diff --git a/modules/block/block.module b/modules/block/block.module index 0cda4e239..48c80d766 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -692,6 +692,9 @@ function block_list($region) { /** * Loads a block object from the database. * + * This function returns the first block matching the module and delta + * parameters, so it should not be used for theme-specific functionality. + * * @param $module * Name of the module that implements the block to load. * @param $delta -- cgit v1.2.3