summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-17 13:50:52 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-17 13:50:52 +0000
commit33ef42291fab05ea84497f6d520e950186ba4610 (patch)
treefa575e70c5f257d98f36d260c684b7dd4b282a1c /modules
parent5d6bc299ff1da408d24d618f800cd6f10d42062d (diff)
downloadbrdo-33ef42291fab05ea84497f6d520e950186ba4610.tar.gz
brdo-33ef42291fab05ea84497f6d520e950186ba4610.tar.bz2
- Patch #885000 by cwgordon7: drupal_placeholder() takes an array as an argument.
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.admin.inc4
-rw-r--r--modules/filter/filter.module4
-rw-r--r--modules/node/node.pages.inc2
-rw-r--r--modules/profile/profile.pages.inc2
-rw-r--r--modules/update/update.report.inc4
5 files changed, 8 insertions, 8 deletions
diff --git a/modules/filter/filter.admin.inc b/modules/filter/filter.admin.inc
index 816bedc5a..008b2391e 100644
--- a/modules/filter/filter.admin.inc
+++ b/modules/filter/filter.admin.inc
@@ -23,8 +23,8 @@ function filter_admin_overview($form) {
// to all roles and cannot be deleted via the admin interface.
$form['formats'][$id]['#is_fallback'] = ($id == $fallback_format);
if ($form['formats'][$id]['#is_fallback']) {
- $form['formats'][$id]['name'] = array('#markup' => drupal_placeholder(array('text' => $format->name)));
- $roles_markup = drupal_placeholder(array('text' => t('All roles may use this format')));
+ $form['formats'][$id]['name'] = array('#markup' => drupal_placeholder($format->name));
+ $roles_markup = drupal_placeholder(t('All roles may use this format'));
}
else {
$form['formats'][$id]['name'] = array('#markup' => check_plain($format->name));
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index d46774733..41fbdb4c0 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -307,10 +307,10 @@ function filter_permission() {
if (!empty($permission)) {
// Only link to the text format configuration page if the user who is
// viewing this will have access to that page.
- $format_name_replacement = user_access('administer filters') ? l($format->name, 'admin/config/content/formats/' . $format->format) : drupal_placeholder(array('text' => $format->name));
+ $format_name_replacement = user_access('administer filters') ? l($format->name, 'admin/config/content/formats/' . $format->format) : drupal_placeholder($format->name);
$perms[$permission] = array(
'title' => t("Use the !text_format text format", array('!text_format' => $format_name_replacement,)),
- 'description' => drupal_placeholder(array('text' => t('Warning: This permission may have security implications depending on how the text format is configured.'))),
+ 'description' => drupal_placeholder(t('Warning: This permission may have security implications depending on how the text format is configured.')),
);
}
}
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index d360bad3a..f5ecc72fc 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -508,7 +508,7 @@ function node_revision_overview($node) {
$row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'short'), "node/$node->nid"), '!username' => theme('username', array('account' => $revision))))
. (($revision->log != '') ? '<p class="revision-log">' . filter_xss($revision->log) . '</p>' : ''),
'class' => array('revision-current'));
- $operations[] = array('data' => drupal_placeholder(array('text' => t('current revision'))), 'class' => array('revision-current'), 'colspan' => 2);
+ $operations[] = array('data' => drupal_placeholder(t('current revision')), 'class' => array('revision-current'), 'colspan' => 2);
}
else {
$row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'short'), "node/$node->nid/revisions/$revision->vid/view"), '!username' => theme('username', array('account' => $revision))))
diff --git a/modules/profile/profile.pages.inc b/modules/profile/profile.pages.inc
index 023b2357c..a85d6fe1f 100644
--- a/modules/profile/profile.pages.inc
+++ b/modules/profile/profile.pages.inc
@@ -77,7 +77,7 @@ function profile_browse() {
$output .= theme('pager', array('tags' => NULL));
if ($field->type == 'selection' || $field->type == 'list' || $field->type == 'textfield') {
- $title = strtr(check_plain($field->page), array('%value' => drupal_placeholder(array('text' => $value))));
+ $title = strtr(check_plain($field->page), array('%value' => drupal_placeholder($value)));
}
else {
$title = check_plain($field->page);
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc
index 6a9d60d1b..592844053 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -168,7 +168,7 @@ function theme_update_report($variables) {
foreach ($project['extra'] as $key => $value) {
$row .= '<div class="' . implode(' ', $value['class']) . '">';
$row .= check_plain($value['label']) . ': ';
- $row .= drupal_placeholder(array('text' => $value['data']));
+ $row .= drupal_placeholder($value['data']);
$row .= "</div>\n";
}
$row .= "</div>\n"; // extra div.
@@ -203,7 +203,7 @@ function theme_update_report($variables) {
break;
default:
- $base_themes[] = drupal_placeholder(array('text' => $base_theme));
+ $base_themes[] = drupal_placeholder($base_theme);
}
}
$row .= t('Depends on: !basethemes', array('!basethemes' => implode(', ', $base_themes)));