summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-08 04:55:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-08 04:55:34 +0000
commitece9032afd035bbe4ca55b6fd671df03b96b4e35 (patch)
treef59f873a2ae95e7c06ea70a57352c8e0483a6143 /modules
parent765f6905499c390711c56617d9e360bbc8787b81 (diff)
downloadbrdo-ece9032afd035bbe4ca55b6fd671df03b96b4e35.tar.gz
brdo-ece9032afd035bbe4ca55b6fd671df03b96b4e35.tar.bz2
#266153 by JamesAn: Add a description for user-personalizable blocks.
Diffstat (limited to 'modules')
-rw-r--r--modules/block/block.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/block/block.module b/modules/block/block.module
index 5ed26dfa3..13e9821ad 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -417,7 +417,14 @@ function block_user_form(&$edit, &$account, $category = NULL) {
if ($category == 'account') {
$rids = array_keys($account->roles);
$result = db_query("SELECT DISTINCT b.* FROM {block} b LEFT JOIN {block_role} r ON b.module = r.module AND b.delta = r.delta WHERE b.status = 1 AND b.custom <> 0 AND (r.rid IN (:rids) OR r.rid IS NULL) ORDER BY b.weight, b.module", array(':rids' => $rids));
- $form['block'] = array('#type' => 'fieldset', '#title' => t('Block configuration'), '#weight' => 3, '#collapsible' => TRUE, '#tree' => TRUE);
+ $form['block'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Personalize blocks'),
+ '#description' => t('Blocks consist of content or information that complements the main content of the page. Enable or disable optional blocks using the checkboxes below.'),
+ '#weight' => 3,
+ '#collapsible' => TRUE,
+ '#tree' => TRUE
+ );
foreach ($result as $block) {
$data = module_invoke($block->module, 'block_list');
if ($data[$block->delta]['info']) {