summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-23 04:40:57 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-23 04:40:57 +0000
commit28feea3cc56e75a9d4d169c34d2609e8847cf30b (patch)
tree0c20b532460beb8b62d577036a6c69cfe3a0c73e /modules/node
parent26be0d8d7f547256504f4ed8dacc1b871a4f304f (diff)
downloadbrdo-28feea3cc56e75a9d4d169c34d2609e8847cf30b.tar.gz
brdo-28feea3cc56e75a9d4d169c34d2609e8847cf30b.tar.bz2
#80079 by drewish, fix some double placeholdering and other bugs with using t().
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index 0e6d05bc9..6e0fb0d7f 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -280,7 +280,7 @@ function node_type_form_submit($form_id, $form_values) {
$update_count = node_type_update_nodes($type->old_type, $type->type);
if ($update_count) {
- drupal_set_message(t('Changed the content type of %update_count %posts from %old_type to %type.', array('%update_count' => $update_count, '%posts' => format_plural($update_count, 'post', 'posts'), '%old_type' => theme('placeholder', $type->old_type), '%type' => theme('placeholder', $type->type))));
+ drupal_set_message(t('Changed the content type of %update_count %posts from %old_type to %type.', array('%update_count' => $update_count, '%posts' => format_plural($update_count, 'post', 'posts'), '%old_type' => $type->old_type, '%type' => $type->type)));
cache_clear_all('filter:', TRUE);
}
}
@@ -320,7 +320,7 @@ function node_type_form_submit($form_id, $form_values) {
node_types_rebuild();
menu_rebuild();
cache_clear_all();
- $t_args = array('%name' => theme('placeholder', $type->name));
+ $t_args = array('%name' => $type->name);
if ($op == t('Reset to defaults')) {
drupal_set_message(t('The content type %name has been reset to its default values.', $t_args));
@@ -366,7 +366,7 @@ function node_type_delete($type) {
$form['type'] = array('#type' => 'value', '#value' => $type->type);
$form['name'] = array('#type' => 'value', '#value' => $type->name);
- $message = t('Are you sure you want to delete the content type %type?', array('%type' => theme('placeholder', $type->name)));
+ $message = t('Are you sure you want to delete the content type %type?', array('%type' => $type->name));
$caption = '';
$num_nodes = db_num_rows(db_query("SELECT * FROM {node} WHERE type = '%s'", $type->type));
@@ -385,7 +385,7 @@ function node_type_delete($type) {
function node_type_delete_form_submit($form_id, $form_values) {
db_query("DELETE FROM {node_type} WHERE type = '%s'", $form_values['type']);
- $t_args = array('%name' => theme('placeholder', $form_values['name']));
+ $t_args = array('%name' => $form_values['name']);
drupal_set_message(t('The content type %name has been deleted.', $t_args));
watchdog('menu', t('Deleted content type %name.', $t_args), WATCHDOG_NOTICE);