diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-24 00:14:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-24 00:14:23 +0000 |
commit | 2c552193154dd49a335b883019e216430a097790 (patch) | |
tree | 0105ac8012cddcf8f4f2b63a27f66d0457dfd5cd /modules/path | |
parent | 00280ca9885a668dd28831cacd536d11f98df36f (diff) | |
download | brdo-2c552193154dd49a335b883019e216430a097790.tar.gz brdo-2c552193154dd49a335b883019e216430a097790.tar.bz2 |
#497118 by chx, catch, pwolanin, JoshuaRogers, and Jacob Singh: Remove the function registry. While the hope was that this would result in improved performance for low-end hosts, it comes at the expense of critical development experience problems and less benefit than something like APC. Class registry remains intact to facilitate autoloading.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index d65dd5ec9..33b0e98cd 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -38,12 +38,14 @@ function path_menu() { 'description' => "Change your site's URL paths by aliasing them.", 'page callback' => 'path_admin_overview', 'access arguments' => array('administer url aliases'), + 'file' => 'path.admin.inc', ); $items['admin/settings/path/edit'] = array( 'title' => 'Edit alias', 'page callback' => 'path_admin_edit', 'access arguments' => array('administer url aliases'), 'type' => MENU_CALLBACK, + 'file' => 'path.admin.inc', ); $items['admin/settings/path/delete'] = array( 'title' => 'Delete alias', @@ -51,6 +53,7 @@ function path_menu() { 'page arguments' => array('path_admin_delete_confirm'), 'access arguments' => array('administer url aliases'), 'type' => MENU_CALLBACK, + 'file' => 'path.admin.inc', ); $items['admin/settings/path/list'] = array( 'title' => 'List', @@ -62,6 +65,7 @@ function path_menu() { 'page callback' => 'path_admin_edit', 'access arguments' => array('administer url aliases'), 'type' => MENU_LOCAL_ACTION, + 'file' => 'path.admin.inc', ); return $items; @@ -210,7 +214,7 @@ function path_node_update($node) { function path_node_delete($node) { path_set_alias('node/' . $node->nid); } - + /** * Implement hook_taxonomy_term_delete(). */ @@ -269,7 +273,7 @@ function path_form_taxonomy_form_term_alter(&$form, $form_state) { else { $url = 'taxonomy/term/' . $form['#term']['tid']; $alias = drupal_get_path_alias($url); - + // Since drupal_get_path_alias() can return the default path, check if we really have an alias. if ($alias != $url) { $path = $alias; |