You are here

function hosting_platform_wildcard_load in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 platform/hosting_platform.module \hosting_platform_wildcard_load()

Menu wildcard loader callback.

Loads a hosting_platform node.

Parameters

int $arg: Node's numeric nid

Return value

bool|object A platforn node object or FALSE.

See also

hosting_task_menu()

File

platform/hosting_platform.module, line 815
Platform node type definition.

Code

function hosting_platform_wildcard_load($arg) {
  if (!is_numeric($arg)) {
    return FALSE;
  }
  if ($node = node_load($arg)) {
    if ($node->type == 'platform') {
      return $node;
    }
  }
  return FALSE;
}