commit 7831a818ec8456c952ed33d080e93a3179f6921f Author: florenttorregrosa Date: Thu Dec 8 10:53:36 2016 +0100 Issue #2832161 by Grimreaper, helmo: Remove hosting_package_node_load() diff --git a/client/hosting_client.module b/client/hosting_client.module index 6261029..c8339ea 100644 --- a/client/hosting_client.module +++ b/client/hosting_client.module @@ -580,21 +580,6 @@ function hosting_client_load($nodes) { } /** - * Implements hook_node_load(). - */ -function hosting_client_node_load($arg) { - if (!is_numeric($arg)) { - return FALSE; - } - if ($node = node_load_multiple(array($arg))) { - if ($node->type == 'client') { - return $node; - } - } - return FALSE; -} - -/** * Return a list of users for a given client. * * @param int|object $node diff --git a/package/hosting_package.module b/package/hosting_package.module index b035f08..15b1a1b 100644 --- a/package/hosting_package.module +++ b/package/hosting_package.module @@ -40,21 +40,6 @@ function hosting_package_node_info() { } /** - * @todo document this function - */ -function hosting_package_node_load($arg) { - if (!is_numeric($arg)) { - return FALSE; - } - if ($node = node_load($arg)) { - if (in_array($node->type, array('site', 'platform'))) { - return $node; - } - } - return FALSE; -} - -/** * Implements hook_permission(). */ function hosting_package_permission() {