summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-20 18:51:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-20 18:51:36 +0000
commitd24d954479320116bc01f332c28a8eaab28c3ccd (patch)
tree1c791703bde5429b500e91cabb5845a80e13aff3 /modules/node
parent999d76e7aa9d9fb1b79b0be171e18e705d9ab7ff (diff)
downloadbrdo-d24d954479320116bc01f332c28a8eaab28c3ccd.tar.gz
brdo-d24d954479320116bc01f332c28a8eaab28c3ccd.tar.bz2
- Patch #521474 by bangpound, JuliaKM et al: rename admin/site-building to admin/structure.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc16
-rw-r--r--modules/node/node.module18
-rw-r--r--modules/node/node.test10
3 files changed, 22 insertions, 22 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index 934ef0dd8..88bda0754 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -21,11 +21,11 @@ function node_overview_types() {
$type_url_str = str_replace('_', '-', $type->type);
$row = array(theme('node_admin_overview', $name, $type));
// Set the edit column.
- $row[] = array('data' => l(t('edit'), 'admin/build/node-type/' . $type_url_str));
+ $row[] = array('data' => l(t('edit'), 'admin/structure/node-type/' . $type_url_str));
// Set the delete column.
if ($type->custom) {
- $row[] = array('data' => l(t('delete'), 'admin/build/node-type/' . $type_url_str . '/delete'));
+ $row[] = array('data' => l(t('delete'), 'admin/structure/node-type/' . $type_url_str . '/delete'));
}
else {
$row[] = array('data' => '');
@@ -35,7 +35,7 @@ function node_overview_types() {
}
if (empty($rows)) {
- $rows[] = array(array('data' => t('No content types available. <a href="@link">Add content type</a>.', array('@link' => url('admin/build/types/add'))), 'colspan' => '5', 'class' => 'message'));
+ $rows[] = array(array('data' => t('No content types available. <a href="@link">Add content type</a>.', array('@link' => url('admin/structure/types/add'))), 'colspan' => '5', 'class' => 'message'));
}
return theme('table', $header, $rows);
@@ -304,7 +304,7 @@ function node_type_form_submit($form, &$form_state) {
$type->locked = $form_state['values']['locked'];
if ($op == t('Delete content type')) {
- $form_state['redirect'] = 'admin/build/node-type/' . str_replace('_', '-', $type->old_type) . '/delete';
+ $form_state['redirect'] = 'admin/structure/node-type/' . str_replace('_', '-', $type->old_type) . '/delete';
return;
}
@@ -345,10 +345,10 @@ function node_type_form_submit($form, &$form_state) {
}
elseif ($status == SAVED_NEW) {
drupal_set_message(t('The content type %name has been added.', $t_args));
- watchdog('node', 'Added content type %name.', $t_args, WATCHDOG_NOTICE, l(t('view'), 'admin/build/types'));
+ watchdog('node', 'Added content type %name.', $t_args, WATCHDOG_NOTICE, l(t('view'), 'admin/structure/types'));
}
- $form_state['redirect'] = 'admin/build/types';
+ $form_state['redirect'] = 'admin/structure/types';
return;
}
@@ -403,7 +403,7 @@ function node_type_delete_confirm(&$form_state, $type) {
$caption .= '<p>' . t('This action cannot be undone.') . '</p>';
- return confirm_form($form, $message, 'admin/build/types', $caption, t('Delete'));
+ return confirm_form($form, $message, 'admin/structure/types', $caption, t('Delete'));
}
/**
@@ -420,6 +420,6 @@ function node_type_delete_confirm_submit($form, &$form_state) {
node_types_rebuild();
- $form_state['redirect'] = 'admin/build/types';
+ $form_state['redirect'] = 'admin/structure/types';
return;
}
diff --git a/modules/node/node.module b/modules/node/node.module
index e0cb8cd6d..acbdbc0ac 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -36,13 +36,13 @@ function node_help($path, $arg) {
switch ($path) {
case 'admin/help#node':
$output = '<p>' . t('The node module manages content on your site, and stores all posts (regardless of type) as a "node" . In addition to basic publishing settings, including whether the post has been published, promoted to the site front page, or should remain present (or sticky) at the top of lists, the node module also records basic information about the author of a post. Optional revision control over edits is available. For additional functionality, the node module is often extended by other modules.') . '</p>';
- $output .= '<p>' . t('Though each post on your site is a node, each post is also of a particular <a href="@content-type">content type</a>. <a href="@content-type">Content types</a> are used to define the characteristics of a post, including the title and description of the fields displayed on its add and edit pages. Each content type may have different default settings for <em>Publishing options</em> and other workflow controls. By default, the two content types in a standard Drupal installation are <em>Page</em> and <em>Story</em>. Use the <a href="@content-type">content types page</a> to add new or edit existing content types. Additional content types also become available as you enable additional core, contributed and custom modules.', array('@content-type' => url('admin/build/types'))) . '</p>';
+ $output .= '<p>' . t('Though each post on your site is a node, each post is also of a particular <a href="@content-type">content type</a>. <a href="@content-type">Content types</a> are used to define the characteristics of a post, including the title and description of the fields displayed on its add and edit pages. Each content type may have different default settings for <em>Publishing options</em> and other workflow controls. By default, the two content types in a standard Drupal installation are <em>Page</em> and <em>Story</em>. Use the <a href="@content-type">content types page</a> to add new or edit existing content types. Additional content types also become available as you enable additional core, contributed and custom modules.', array('@content-type' => url('admin/structure/types'))) . '</p>';
$output .= '<p>' . t('The administrative <a href="@content">content page</a> allows you to review and manage your site content. The node module makes a number of permissions available for each content type, which may be set by role on the <a href="@permissions">permissions page</a>.', array('@content' => url('admin/content/node'), '@permissions' => url('admin/user/permissions'))) . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@node">Node module</a>.', array('@node' => 'http://drupal.org/handbook/modules/node/')) . '</p>';
return $output;
case 'admin/content/node':
return ' '; // Return a non-null value so that the 'more help' link is shown.
- case 'admin/build/types/add':
+ case 'admin/structure/types/add':
return '<p>' . t('To create a new content type, enter the human-readable name, the machine-readable name, and all other relevant fields that are on this page. Once created, users of your site will be able to create posts that are instances of this content type.') . '</p>';
case 'node/%/revisions':
return '<p>' . t('The revisions let you track differences between multiple versions of a post.') . '</p>';
@@ -141,7 +141,7 @@ function node_fieldable_info() {
$return['node']['bundles'][$type] = array(
'label' => $name,
'admin' => array(
- 'path' => 'admin/build/node-type/' . str_replace('_', '-', $type),
+ 'path' => 'admin/structure/node-type/' . str_replace('_', '-', $type),
'access arguments' => array('administer content types'),
),
);
@@ -1687,18 +1687,18 @@ function node_menu() {
'type' => MENU_CALLBACK,
);
- $items['admin/build/types'] = array(
+ $items['admin/structure/types'] = array(
'title' => 'Content types',
'description' => 'Manage posts by content type, including default status, front page promotion, comment settings, etc.',
'page callback' => 'node_overview_types',
'access arguments' => array('administer content types'),
);
- $items['admin/build/types/list'] = array(
+ $items['admin/structure/types/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
- $items['admin/build/types/add'] = array(
+ $items['admin/structure/types/add'] = array(
'title' => 'Add content type',
'page callback' => 'drupal_get_form',
'page arguments' => array('node_type_form'),
@@ -1737,18 +1737,18 @@ function node_menu() {
'access arguments' => array('create', $type->type),
'description' => $type->description,
);
- $items['admin/build/node-type/' . $type_url_str] = array(
+ $items['admin/structure/node-type/' . $type_url_str] = array(
'title' => $type->name,
'page callback' => 'drupal_get_form',
'page arguments' => array('node_type_form', $type),
'access arguments' => array('administer content types'),
'type' => MENU_CALLBACK,
);
- $items['admin/build/node-type/' . $type_url_str . '/edit'] = array(
+ $items['admin/structure/node-type/' . $type_url_str . '/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
- $items['admin/build/node-type/' . $type_url_str . '/delete'] = array(
+ $items['admin/structure/node-type/' . $type_url_str . '/delete'] = array(
'title' => 'Delete',
'page arguments' => array('node_type_delete_confirm', $type),
'access arguments' => array('administer content types'),
diff --git a/modules/node/node.test b/modules/node/node.test
index 91d71e5f2..a742083a4 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -397,7 +397,7 @@ class SummaryLengthTestCase extends DrupalWebTestCase {
$edit = array (
'teaser_length' => 200,
);
- $this->drupalPost('admin/build/node-type/page', $edit, t('Save content type'));
+ $this->drupalPost('admin/structure/node-type/page', $edit, t('Save content type'));
// Attempt to access the front page again and check if the summary is now only 200 characters in length.
$this->drupalGet("node");
$this->assertNoRaw($expected, t('Check that the summary is not longer than 200 characters'), 'Node');
@@ -457,13 +457,13 @@ class NodeBlockTestCase extends DrupalWebTestCase {
function testSearchFormBlock() {
// Set block title to confirm that the interface is availble.
- $this->drupalPost('admin/build/block/configure/node/syndicate', array('title' => $this->randomName(8)), t('Save block'));
+ $this->drupalPost('admin/structure/block/configure/node/syndicate', array('title' => $this->randomName(8)), t('Save block'));
$this->assertText(t('The block configuration has been saved.'), t('Block configuration set.'));
// Set the block to a region to confirm block is availble.
$edit = array();
$edit['node_syndicate[region]'] = 'footer';
- $this->drupalPost('admin/build/block', $edit, t('Save blocks'));
+ $this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this->assertText(t('The block settings have been updated.'), t('Block successfully move to footer region.'));
}
}
@@ -495,7 +495,7 @@ class NodePostSettingsTestCase extends DrupalWebTestCase {
// Set page content type to display post information.
$edit = array();
$edit['node_submitted'] = TRUE;
- $this->drupalPost('admin/build/node-type/page', $edit, t('Save content type'));
+ $this->drupalPost('admin/structure/node-type/page', $edit, t('Save content type'));
// Create a node.
$edit = array();
@@ -516,7 +516,7 @@ class NodePostSettingsTestCase extends DrupalWebTestCase {
// Set page content type to display post information.
$edit = array();
$edit['node_submitted'] = FALSE;
- $this->drupalPost('admin/build/node-type/page', $edit, t('Save content type'));
+ $this->drupalPost('admin/structure/node-type/page', $edit, t('Save content type'));
// Create a node.
$edit = array();