summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:14:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:14:23 +0000
commit2c552193154dd49a335b883019e216430a097790 (patch)
tree0105ac8012cddcf8f4f2b63a27f66d0457dfd5cd /modules/profile
parent00280ca9885a668dd28831cacd536d11f98df36f (diff)
downloadbrdo-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/profile')
-rw-r--r--modules/profile/profile.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index ea99c4dc2..28872b4b2 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -80,6 +80,7 @@ function profile_menu() {
'title' => 'User list',
'page callback' => 'profile_browse',
'access arguments' => array('access user profiles'),
+ 'file' => 'profile.pages.inc',
'type' => MENU_SUGGESTED_ITEM,
);
$items['admin/config/people/profile'] = array(
@@ -88,18 +89,21 @@ function profile_menu() {
'page callback' => 'drupal_get_form',
'page arguments' => array('profile_admin_overview'),
'access arguments' => array('administer users'),
+ 'file' => 'profile.admin.inc',
);
$items['admin/config/people/profile/add'] = array(
'title' => 'Add field',
'page callback' => 'drupal_get_form',
'page arguments' => array('profile_field_form'),
'access arguments' => array('administer users'),
+ 'file' => 'profile.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/people/profile/autocomplete'] = array(
'title' => 'Profile category autocomplete',
'page callback' => 'profile_admin_settings_autocomplete',
'access arguments' => array('administer users'),
+ 'file' => 'profile.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/people/profile/edit'] = array(
@@ -107,6 +111,7 @@ function profile_menu() {
'page callback' => 'drupal_get_form',
'page arguments' => array('profile_field_form'),
'access arguments' => array('administer users'),
+ 'file' => 'profile.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/people/profile/delete'] = array(
@@ -114,12 +119,14 @@ function profile_menu() {
'page callback' => 'drupal_get_form',
'page arguments' => array('profile_field_delete'),
'access arguments' => array('administer users'),
+ 'file' => 'profile.admin.inc',
'type' => MENU_CALLBACK,
);
$items['profile/autocomplete'] = array(
'title' => 'Profile autocomplete',
'page callback' => 'profile_autocomplete',
'access arguments' => array('access user profiles'),
+ 'file' => 'profile.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
@@ -128,7 +135,7 @@ function profile_menu() {
/**
* Implement hook_block_list().
*/
-function profile_block_list() {
+ function profile_block_list() {
$blocks['author-information']['info'] = t('Author information');
$blocks['author-information']['cache'] = BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE;
return $blocks;