function hosting_site_profile_block_visibility in Hosting 6.2
Same name and namespace in other branches
- 7.4 site/hosting_site.module \hosting_site_profile_block_visibility()
- 7.3 site/hosting_site.module \hosting_site_profile_block_visibility()
Control block visibility.
File
- site/
hosting_site.module, line 717
Code
function hosting_site_profile_block_visibility() {
$node = menu_get_object();
$menu_item = menu_get_item();
if (!empty($node) && $menu_item['number_parts'] == 2) {
return $node->type == 'package' && $node->package_type == 'profile';
}
return FALSE;
}