summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.admin.inc12
-rw-r--r--modules/forum/forum.module32
-rw-r--r--modules/forum/forum.test12
3 files changed, 28 insertions, 28 deletions
diff --git a/modules/forum/forum.admin.inc b/modules/forum/forum.admin.inc
index efd0944e3..ef7fc7823 100644
--- a/modules/forum/forum.admin.inc
+++ b/modules/forum/forum.admin.inc
@@ -94,7 +94,7 @@ function forum_form_submit($form, &$form_state) {
drupal_set_message(t('The @type %term has been updated.', array('%term' => $form_state['values']['name'], '@type' => $type)));
break;
}
- $form_state['redirect'] = 'admin/build/forum';
+ $form_state['redirect'] = 'admin/structure/forum';
return;
}
@@ -166,7 +166,7 @@ function forum_confirm_delete(&$form_state, $tid) {
$form['tid'] = array('#type' => 'value', '#value' => $tid);
$form['name'] = array('#type' => 'value', '#value' => $term->name);
- return confirm_form($form, t('Are you sure you want to delete the forum %name?', array('%name' => $term->name)), 'admin/build/forum', t('Deleting a forum or container will also delete its sub-forums, if any. To delete posts in this forum, visit <a href="@content">content administration</a> first. This action cannot be undone.', array('@content' => url('admin/content/node'))), t('Delete'), t('Cancel'));
+ return confirm_form($form, t('Are you sure you want to delete the forum %name?', array('%name' => $term->name)), 'admin/structure/forum', t('Deleting a forum or container will also delete its sub-forums, if any. To delete posts in this forum, visit <a href="@content">content administration</a> first. This action cannot be undone.', array('@content' => url('admin/content/node'))), t('Delete'), t('Cancel'));
}
/**
@@ -177,7 +177,7 @@ function forum_confirm_delete_submit($form, &$form_state) {
drupal_set_message(t('The forum %term and all sub-forums have been deleted.', array('%term' => $form_state['values']['name'])));
watchdog('content', 'forum: deleted %term and all its sub-forums.', array('%term' => $form_state['values']['name']));
- $form_state['redirect'] = 'admin/build/forum';
+ $form_state['redirect'] = 'admin/structure/forum';
return;
}
@@ -227,10 +227,10 @@ function forum_overview(&$form_state) {
$term = $form[$key]['#term'];
$form[$key]['view']['#markup'] = l($term['name'], 'forum/' . $term['tid']);
if (in_array($form[$key]['#term']['tid'], variable_get('forum_containers', array()))) {
- $form[$key]['edit']['#markup'] = l(t('edit container'), 'admin/build/forum/edit/container/' . $term['tid']);
+ $form[$key]['edit']['#markup'] = l(t('edit container'), 'admin/structure/forum/edit/container/' . $term['tid']);
}
else {
- $form[$key]['edit']['#markup'] = l(t('edit forum'), 'admin/build/forum/edit/forum/' . $term['tid']);
+ $form[$key]['edit']['#markup'] = l(t('edit forum'), 'admin/structure/forum/edit/forum/' . $term['tid']);
}
}
}
@@ -242,7 +242,7 @@ function forum_overview(&$form_state) {
$form['#theme'] = 'taxonomy_overview_terms';
$form['#submit'] = array('taxonomy_overview_terms_submit'); // Use the existing taxonomy overview submit handler.
$form['#validate'] = array('taxonomy_overview_terms_validate');
- $form['#empty_text'] = t('No containers or forums available. <a href="@container">Add container</a> or <a href="@forum">Add forum</a>.', array('@container' => url('admin/build/forum/add/container'), '@forum' => url('admin/build/forum/add/forum')));
+ $form['#empty_text'] = t('No containers or forums available. <a href="@container">Add container</a> or <a href="@forum">Add forum</a>.', array('@container' => url('admin/structure/forum/add/container'), '@forum' => url('admin/structure/forum/add/forum')));
return $form;
}
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 2ac52468a..93abb925b 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -21,14 +21,14 @@ function forum_help($path, $arg) {
$output .= '<li>' . t('selecting <em>Disabled</em> under <em>Comment settings</em> while editing a forum topic will hide all existing comments on the thread, and prevent new ones.') . '</li></ul>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@forum">Forum module</a>.', array('@forum' => 'http://drupal.org/handbook/modules/forum/')) . '</p>';
return $output;
- case 'admin/build/forum':
+ case 'admin/structure/forum':
return '<p>' . t('This page displays a list of existing forums and containers. Containers (optionally) hold forums, and forums hold forum topics (a forum topic is the initial post to a threaded discussion). To provide structure, both containers and forums may be placed inside other containers and forums.') . '</p>';
- case 'admin/build/forum/add/container':
+ case 'admin/structure/forum/add/container':
return '<p>' . t('By grouping related or similar forums, containers help organize forums. For example, a container named "Food" may hold two forums named "Fruit" and "Vegetables", respectively.') . '</p>';
- case 'admin/build/forum/add/forum':
+ case 'admin/structure/forum/add/forum':
return '<p>' . t('A forum holds related or similar forum topics (a forum topic is the initial post to a threaded discussion). For example, a forum named "Fruit" may contain forum topics titled "Apples" and "Bananas", respectively.') . '</p>';
- case 'admin/build/forum/settings':
- return '<p>' . t('These settings allow you to adjust the display of your forum topics. The content types available for use within a forum may be selected by editing the <em>Content types</em> on the <a href="@forum-vocabulary">forum vocabulary page</a>.', array('@forum-vocabulary' => url('admin/build/taxonomy/edit/vocabulary/' . variable_get('forum_nav_vocabulary', 0)))) . '</p>';
+ case 'admin/structure/forum/settings':
+ return '<p>' . t('These settings allow you to adjust the display of your forum topics. The content types available for use within a forum may be selected by editing the <em>Content types</em> on the <a href="@forum-vocabulary">forum vocabulary page</a>.', array('@forum-vocabulary' => url('admin/structure/taxonomy/edit/vocabulary/' . variable_get('forum_nav_vocabulary', 0)))) . '</p>';
}
}
@@ -92,56 +92,56 @@ function forum_menu() {
'page callback' => 'forum_page',
'access arguments' => array('access content'),
);
- $items['admin/build/forum'] = array(
+ $items['admin/structure/forum'] = array(
'title' => 'Forums',
'description' => 'Control forums and their hierarchy and change forum settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array('forum_overview'),
'access arguments' => array('administer forums'),
);
- $items['admin/build/forum/list'] = array(
+ $items['admin/structure/forum/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
- $items['admin/build/forum/add/container'] = array(
+ $items['admin/structure/forum/add/container'] = array(
'title' => 'Add container',
'page callback' => 'forum_form_main',
'page arguments' => array('container'),
'access arguments' => array('administer forums'),
'type' => MENU_LOCAL_TASK,
- 'parent' => 'admin/build/forum',
+ 'parent' => 'admin/structure/forum',
);
- $items['admin/build/forum/add/forum'] = array(
+ $items['admin/structure/forum/add/forum'] = array(
'title' => 'Add forum',
'page callback' => 'forum_form_main',
'page arguments' => array('forum'),
'access arguments' => array('administer forums'),
'type' => MENU_LOCAL_TASK,
- 'parent' => 'admin/build/forum',
+ 'parent' => 'admin/structure/forum',
);
- $items['admin/build/forum/settings'] = array(
+ $items['admin/structure/forum/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array('forum_admin_settings'),
'access arguments' => array('administer forums'),
'weight' => 5,
'type' => MENU_LOCAL_TASK,
- 'parent' => 'admin/build/forum',
+ 'parent' => 'admin/structure/forum',
);
- $items['admin/build/forum/edit/%forum_term'] = array(
+ $items['admin/structure/forum/edit/%forum_term'] = array(
'page callback' => 'forum_form_main',
'access arguments' => array('administer forums'),
'type' => MENU_CALLBACK,
);
- $items['admin/build/forum/edit/container/%forum_term'] = array(
+ $items['admin/structure/forum/edit/container/%forum_term'] = array(
'title' => 'Edit container',
'page callback' => 'forum_form_main',
'page arguments' => array('container', 5),
'access arguments' => array('administer forums'),
'type' => MENU_CALLBACK,
);
- $items['admin/build/forum/edit/forum/%forum_term'] = array(
+ $items['admin/structure/forum/edit/forum/%forum_term'] = array(
'title' => 'Edit forum',
'page callback' => 'forum_form_main',
'page arguments' => array('forum', 5),
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index df0d61d04..142f076eb 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -77,14 +77,14 @@ class ForumTestCase extends DrupalWebTestCase {
// Enable the active forum block.
$edit = array();
$edit['forum_active[region]'] = 'right';
- $this->drupalPost('admin/build/block', $edit, t('Save blocks'));
+ $this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this->assertResponse(200);
$this->assertText(t('The block settings have been updated.'), t('[Active forum topics] Forum block was enabled'));
// Enable the new forum block.
$edit = array();
$edit['forum_new[region]'] = 'right';
- $this->drupalPost('admin/build/block', $edit, t('Save blocks'));
+ $this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this->assertResponse(200);
$this->assertText(t('The block settings have been updated.'), t('[New forum topics] Forum block was enabled'));
@@ -93,7 +93,7 @@ class ForumTestCase extends DrupalWebTestCase {
// Add forum to navigation menu.
$edit = array();
- $this->drupalPost('admin/build/menu-customize/navigation', $edit, t('Save configuration'));
+ $this->drupalPost('admin/structure/menu-customize/navigation', $edit, t('Save configuration'));
$this->assertResponse(200);
// Edit forum taxonomy.
@@ -131,7 +131,7 @@ class ForumTestCase extends DrupalWebTestCase {
);
// Edit the vocabulary.
- $this->drupalPost('admin/build/taxonomy/' . $vid, $edit, t('Save'));
+ $this->drupalPost('admin/structure/taxonomy/' . $vid, $edit, t('Save'));
$this->assertResponse(200);
$this->assertRaw(t('Updated vocabulary %name.', array('%name' => $title)), t('Vocabulary was edited'));
@@ -170,7 +170,7 @@ class ForumTestCase extends DrupalWebTestCase {
);
// Create forum.
- $this->drupalPost('admin/build/forum/add/' . $type, $edit, t('Save'));
+ $this->drupalPost('admin/structure/forum/add/' . $type, $edit, t('Save'));
$this->assertResponse(200);
$type = ($type == 'container') ? 'forum container' : 'forum';
$this->assertRaw(t('Created new @type %term.', array('%term' => $name, '@type' => t($type))), t(ucfirst($type) . ' was created'));
@@ -194,7 +194,7 @@ class ForumTestCase extends DrupalWebTestCase {
*/
function deleteForum($tid) {
// Delete the forum id.
- $this->drupalPost('admin/build/forum/edit/forum/' . $tid, array(), t('Delete'));
+ $this->drupalPost('admin/structure/forum/edit/forum/' . $tid, array(), t('Delete'));
$this->drupalPost(NULL, NULL, t('Delete'));
// Assert that the forum no longer exists.