commit 19bf3e38ce9f450843e4c32acd8b9e4dc6db0cbe
Author: bgm <bgm@89461.no-reply.drupal.org>
Date:   Tue Aug 16 12:54:35 2016 +0200

    Issue #2763509 by bgm: Deprecate hosting_context_node_types()

diff --git a/hosting.module b/hosting.module
index 7140cba..9d05d06 100644
--- a/hosting.module
+++ b/hosting.module
@@ -211,15 +211,13 @@ function hosting_node_insert($node) {
  */
 function hosting_node_load($nodes, $types) {
   // Decide whether any of $types are relevant to our purposes.
-  if (count(array_intersect(hosting_context_node_types(), $types))) {
-    // Gather our extra data for each of these nodes.
-    $result = db_query("SELECT nid, name AS hosting_name FROM {hosting_context} WHERE nid IN(:nids)", array(':nids' => array_keys($nodes)))->fetchAllKeyed();
-    // Add our extra data to the node objects.
-    foreach ($result as $nid => $hosting_name) {
-      $nodes[$nid]->hosting_name = $hosting_name;
-      // Redispatch through our custom nodeapi implementation.
-      hosting_nodeapi($nodes[$nid], 'load');
-    }
+  // Gather our extra data for each of these nodes.
+  $result = db_query("SELECT nid, name AS hosting_name FROM {hosting_context} WHERE nid IN(:nids)", array(':nids' => array_keys($nodes)))->fetchAllKeyed();
+  // Add our extra data to the node objects.
+  foreach ($result as $nid => $hosting_name) {
+    $nodes[$nid]->hosting_name = $hosting_name;
+    // Redispatch through our custom nodeapi implementation.
+    hosting_nodeapi($nodes[$nid], 'load');
   }
 }
 
@@ -239,12 +237,6 @@ function hosting_node_prepare($node) {
  * @see hook_nodeapi_TYPE_OP()
  */
 function hosting_node_presave($node) {
-  if (in_array($node->type, hosting_context_node_types())) {
-    if (!isset($node->uid)) {
-      global $user;
-      $node->uid = $user->uid;
-    }
-  }
   // Redispatch through our custom nodeapi implementation.
   hosting_nodeapi($node, 'presave');
 }
@@ -1195,6 +1187,9 @@ function hosting_context_nid($alias) {
 
 /**
  * Define the node types that have associated provision contexts.
+ *
+ * @deprecated See issue #2763509. If you really need this, you can check
+ * if a nid is in the hosting_context table.
  */
 function hosting_context_node_types() {
   return array('site', 'platform', 'server');
