summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 18:19:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 18:19:01 +0000
commit8cbdf98f416abb8b3fe2dce71c579b034668c5a9 (patch)
treee70305e5928de5318635db52d1401daaf9f2a917
parent82c20e6615aff1caec4b8cae422e6d6f043f1e5e (diff)
downloadbrdo-8cbdf98f416abb8b3fe2dce71c579b034668c5a9.tar.gz
brdo-8cbdf98f416abb8b3fe2dce71c579b034668c5a9.tar.bz2
#556390 follow-up by David_Rothstein: String clean-up on block visibility settings.
-rw-r--r--modules/block/block.admin.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index 39a6d8316..e5270c941 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -275,14 +275,18 @@ function block_admin_configure($form, &$form_state, $module, $delta) {
}
else {
$options = array(
- t('On every page except those specified'),
- t('Show only on specified pages'),
+ t('All pages except those listed'),
+ t('Only the listed pages'),
);
$description = t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>'));
if (module_exists('php') && $access) {
- $options[] = t('If the PHP code returns <code>TRUE</code> (PHP-mode, experts only)');
- $description .= ' ' . t('If the PHP-mode is chosen, enter PHP code between %php. Note that executing incorrect PHP-code can break your Drupal site.', array('%php' => '<?php ?>'));
+ $options[] = t('Pages on which this PHP code returns <code>TRUE</code> (experts only)');
+ $title = t('Pages or PHP code');
+ $description .= ' ' . t('If the PHP option is chosen, enter PHP code between %php. Note that executing incorrect PHP code can break your Drupal site.', array('%php' => '<?php ?>'));
+ }
+ else {
+ $title = t('Pages');
}
$form['visibility']['path']['visibility'] = array(
'#type' => 'radios',
@@ -292,7 +296,7 @@ function block_admin_configure($form, &$form_state, $module, $delta) {
);
$form['visibility']['path']['pages'] = array(
'#type' => 'textarea',
- '#title' => t('Paths'),
+ '#title' => '<span class="element-invisible">' . $title . '</span>',
'#default_value' => isset($block->pages) ? $block->pages : '',
'#description' => $description,
);