You are here

function hosting_ssl_cert_node_load in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 web_server/ssl/hosting_ssl.module \hosting_ssl_cert_node_load()
  2. 7.3 web_server/ssl/hosting_ssl.module \hosting_ssl_cert_node_load()

Implementation of the hook_load() from hook_menu().

This is a weird hook that is not well documented but allows loads from the menu system. This is *not* the regular hook_load().

See also

hosting_ssl_menu()

File

web_server/ssl/hosting_ssl.module, line 111

Code

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