me.install in me aliases 6
Same filename and directory in other branches
Provides 'me' aliases install and uninstall routines.
File
me.installView source
<?php
/**
* @file
*
* Provides 'me' aliases install and uninstall routines.
*/
/**
* Implementation of hook_uninstall().
*/
function me_uninstall() {
$vars = array(
'me_alias',
'me_case_insensitive',
'me_redirect',
'me_path_rule',
'me_paths',
'me_redirect_anonymous',
'me_theme_menu_item_link',
'me_rewrite_link',
'me_user_override',
);
foreach ($vars as $var) {
variable_del($var);
}
}
/**
* Implementation of hook_install().
*/
function me_install() {
db_query("UPDATE {system} SET weight = 9999 WHERE name = 'me'");
}
/**
* Implementation of hook_update_N() to increase the weight of me
* to make sure other modules can use the %user wildcards as they expect
* them to be.
*/
function me_update_6250() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 9999 WHERE name = 'me'");
return $ret;
}
Functions
Name | Description |
---|---|
me_install | Implementation of hook_install(). |
me_uninstall | Implementation of hook_uninstall(). |
me_update_6250 | Implementation of hook_update_N() to increase the weight of me to make sure other modules can use the %user wildcards as they expect them to be. |