You are here

function hosting_ssl_cert_node_load in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 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()

Implements 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 125
Hook implementations for the Hosting SSL module.

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;
}