You are here

function hosting_package_block_visibility in Hosting 7.4

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

Control block visibility.

File

package/hosting_package.module, line 482
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';
  }
}