summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc2
-rw-r--r--modules/node/node.admin.inc8
-rw-r--r--modules/node/node.module2
-rw-r--r--modules/node/node.pages.inc8
4 files changed, 10 insertions, 10 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index c58a32ab0..7dd3a2377 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -141,7 +141,7 @@ function node_type_form(&$form_state, $type = NULL) {
$form['submission']['help'] = array(
'#type' => 'textarea',
'#title' => t('Explanation or submission guidelines'),
- '#default_value' => $type->help,
+ '#default_value' => $type->help,
'#description' => t('This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users.')
);
$form['workflow'] = array(
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index bc33c3c19..3697b17c3 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -23,7 +23,7 @@ function node_configure() {
$form['default_nodes_main'] = array(
'#type' => 'select', '#title' => t('Number of posts on main page'), '#default_value' => variable_get('default_nodes_main', 10),
- '#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)),
+ '#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)),
'#description' => t('The default maximum number of posts to display per page on overview pages such as the main page.')
);
$form['teaser_length'] = array(
@@ -478,7 +478,7 @@ function node_admin_nodes() {
foreach (module_invoke_all('node_operations') as $operation => $array) {
$options[$operation] = $array['label'];
}
- $form['options']['operation'] = array('#type' => 'select', '#options' => $options, '#default_value' => 'approve');
+ $form['options']['operation'] = array('#type' => 'select', '#options' => $options, '#default_value' => 'approve');
$form['options']['submit'] = array(
'#type' => 'submit',
'#value' => t('Update'),
@@ -494,7 +494,7 @@ function node_admin_nodes() {
$form['title'][$node->nid] = array('#value' => l($node->title, 'node/'. $node->nid, $options) .' '. theme('mark', node_mark($node->nid, $node->changed)));
$form['name'][$node->nid] = array('#value' => check_plain(node_get_types('name', $node)));
$form['username'][$node->nid] = array('#value' => theme('username', $node));
- $form['status'][$node->nid] = array('#value' => ($node->status ? t('published') : t('not published')));
+ $form['status'][$node->nid] = array('#value' => ($node->status ? t('published') : t('not published')));
if ($multilanguage) {
$form['language'][$node->nid] = array('#value' => empty($node->language) ? t('Language neutral') : t($languages[$node->language]->name));
}
@@ -540,7 +540,7 @@ function theme_node_admin_nodes($form) {
}
}
- else {
+ else {
$rows[] = array(array('data' => t('No posts available.'), 'colspan' => '6'));
}
diff --git a/modules/node/node.module b/modules/node/node.module
index 96aedc866..f4ed7406d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1603,7 +1603,7 @@ function node_feed($nids = FALSE, $channel = array()) {
// Allow modules to add additional item fields and/or modify $item
$extra = node_invoke_nodeapi($item, 'rss item');
- $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid .' at '. $base_url, 'attributes' => array('isPermaLink' => 'false'))));
+ $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid .' at '. $base_url, 'attributes' => array('isPermaLink' => 'false'))));
foreach ($extra as $element) {
if (isset($element['namespace'])) {
$namespaces = array_merge($namespaces, $element['namespace']);
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 6861626c6..a1be6d1ee 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -17,7 +17,7 @@ function node_page_edit($node) {
function node_add_page() {
$item = menu_get_item();
- $content = system_admin_menu_block($item);
+ $content = system_admin_menu_block($item);
return theme('node_add_list', $content);
}
@@ -153,7 +153,7 @@ function node_form(&$form_state, $node) {
'#weight' => 20,
);
$form['revision_information']['revision'] = array(
- '#access' => user_access('administer nodes'),
+ '#access' => user_access('administer nodes'),
'#type' => 'checkbox',
'#title' => t('Create new revision'),
'#default_value' => $node->revision,
@@ -555,7 +555,7 @@ function node_revision_overview($node) {
*/
function node_revision_revert_confirm($form_state, $node_revision) {
$form['#node_revision'] = $node_revision;
- return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/'. $node_revision->nid .'/revisions', '', t('Revert'), t('Cancel'));
+ return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/'. $node_revision->nid .'/revisions', '', t('Revert'), t('Cancel'));
}
function node_revision_revert_confirm_submit($form, &$form_state) {
@@ -575,7 +575,7 @@ function node_revision_revert_confirm_submit($form, &$form_state) {
function node_revision_delete_confirm($form_state, $node_revision) {
$form['#node_revision'] = $node_revision;
- return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/'. $node_revision->nid .'/revisions', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
+ return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/'. $node_revision->nid .'/revisions', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}
function node_revision_delete_confirm_submit($form, &$form_state) {