summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-03-30 22:03:05 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-03-30 22:03:05 -0400
commitb1001811d95d5b4dc7ca4916fc74f773106ac9f0 (patch)
tree64db0c9284d8aa24e1b357646e00967fc28ad50b /modules/block
parent3329a70175eb772ee89568ec3423572e48012518 (diff)
downloadbrdo-b1001811d95d5b4dc7ca4916fc74f773106ac9f0.tar.gz
brdo-b1001811d95d5b4dc7ca4916fc74f773106ac9f0.tar.bz2
Issue #2432619 by vbouchet, jhodgdon, joachim: block_load() should state it's not suitable for general consumption
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.module3
1 files changed, 3 insertions, 0 deletions
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