Commit 1ead47cf authored by Adrian Rossouw's avatar Adrian Rossouw

Remove the enabling of path.module, which messes up our ui. I conditionally...

Remove the enabling of path.module, which messes up our ui. I conditionally include the .module to get at path_set_alias.
parent 633ebd35
......@@ -9,7 +9,7 @@
*/
function hostmaster_profile_modules() {
return array(
/* core */ 'block', 'color', 'filter', 'help', 'menu', 'node', 'system', 'user', 'path',
/* core */ 'block', 'color', 'filter', 'help', 'menu', 'node', 'system', 'user',
/* aegir contrib */ 'hosting', 'hosting_task', 'hosting_client', 'hosting_db_server', 'hosting_package', 'hosting_platform', 'hosting_site', 'hosting_web_server', 'hosting_server',
/* other contrib */ 'install_profile_api' /* needs >= 2.1 */, 'jquery_ui', 'modalframe'
);
......
......@@ -202,7 +202,6 @@ function hosting_update_6008() {
$return = array();
if (!variable_get('hosting_update_6008_run', false)) {
drupal_install_modules(array('path'));
db_create_table($return, 'hosting_context', array(
'fields' => array(
......@@ -284,8 +283,12 @@ function hosting_update_6009() {
* Add url aliases for the context names that are registered.
*/
function hosting_update_6010() {
// We include the file instead of enabling the module,
// because we do not want the overhead of having all the
// path UI stuff on nodes.
require_once("./modules/path/path.module");
$ret = array();
drupal_install_modules(array('path'));
$result = db_query("SELECT nid, name FROM {hosting_context}");
......
......@@ -776,6 +776,10 @@ function hosting_context_register($nid, $name) {
// It's a new item
db_query("INSERT INTO {hosting_context} (nid, name) VALUES (%d, '%s')", $nid, $name);
}
// We include the file instead of enabling the module,
// because we do not want the overhead of having all the
// path UI stuff on nodes.
require_once("./modules/path/path.module");
path_set_alias("node/$nid", "hosting/c/$name");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment