Updated
This commit is contained in:
@@ -13,15 +13,27 @@ function assoc_profile_module() {}
|
|||||||
require_once 'addon/assoc_profile/assoc_profile_manage.php';
|
require_once 'addon/assoc_profile/assoc_profile_manage.php';
|
||||||
|
|
||||||
function assoc_profile_load() {
|
function assoc_profile_load() {
|
||||||
|
register_hook('load_pdl', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_load_pdl');
|
||||||
register_hook('profile_advanced','addon/assoc_profile/assoc_profile.php', 'assoc_profile_view_hook');
|
register_hook('profile_advanced','addon/assoc_profile/assoc_profile.php', 'assoc_profile_view_hook');
|
||||||
register_hook('profile_edit', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_edit_hook');
|
register_hook('profile_edit', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_edit_hook');
|
||||||
}
|
}
|
||||||
|
|
||||||
function assoc_profile_unload() {
|
function assoc_profile_unload() {
|
||||||
|
unregister_hook('load_pdl', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_load_pdl');
|
||||||
unregister_hook('profile_advanced','addon/assoc_profile/assoc_profile.php', 'assoc_profile_view_hook');
|
unregister_hook('profile_advanced','addon/assoc_profile/assoc_profile.php', 'assoc_profile_view_hook');
|
||||||
unregister_hook('profile_edit', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_edit_hook');
|
unregister_hook('profile_edit', 'addon/assoc_profile/assoc_profile.php', 'assoc_profile_edit_hook');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function assoc_profile_load_pdl(&$b) {
|
||||||
|
if (!is_array($b) || empty($b['module']) || $b['module'] !== 'assoc_profile') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$layout = @file_get_contents('addon/assoc_profile/mod_assoc_profile.pdl');
|
||||||
|
if ($layout !== false) {
|
||||||
|
$b['layout'] = $layout;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// HELPERS
|
// HELPERS
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
[template]default[/template]
|
[template]default[/template]
|
||||||
|
|
||||||
[region=aside]
|
[region=aside]
|
||||||
[widget=vs01][/widget]
|
|
||||||
[/region]
|
[/region]
|
||||||
|
|
||||||
[region=content]
|
[region=content]
|
||||||
|
|||||||
Reference in New Issue
Block a user