You are here

function hosting_package_block_visibility in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 package/hosting_package.module \hosting_package_block_visibility()
  2. 7.4 package/hosting_package.module \hosting_package_block_visibility()

Control block visibility.

File

package/hosting_package.module, line 473
Defines package node types

Code

function hosting_package_block_visibility() {
  $node = menu_get_object();
  if (!empty($node)) {
    return $node->type == 'package' && $node->package_type != 'profile';
  }
}