d7 version for 4.2 - not complete. Also see  diff --git a/api/api.php b/api/api.php
index 95406d4..660ed0e 100644
--- a/api/api.php
+++ b/api/api.php
@@ -411,7 +411,7 @@ function _civicrm_api_get_camel_name(,  = NUL
  */
 function _civicrm_api_call_nested_api(&, &, , ,
    = _civicrm_api_get_entity_name_from_camel();
-  if(strtolower() == 'getsingle'){
+  if(strtolower() == 'getsingle' || strtolower() == 'getvalue'){
      = ;
      = array('values' => array(0 => ));
   }
@@ -491,7 +491,7 @@ function _civicrm_api_call_nested_api(&, &,
       }
     }
   }
-  if(strtolower() == 'getsingle'){
+  if(strtolower() == 'getsingle' ||strtolower() == 'getsingle' ){
      = ['values'][0];
   }
 }diff --git a/api/api.php b/api/api.php
index 95406d4..660ed0e 100644
--- a/api/api.php
+++ b/api/api.php
@@ -411,7 +411,7 @@ function _civicrm_api_get_camel_name(,  = NUL
  */
 function _civicrm_api_call_nested_api(&, &, , ,
    = _civicrm_api_get_entity_name_from_camel();
-  if(strtolower() == 'getsingle'){
+  if(strtolower() == 'getsingle' || strtolower() == 'getvalue'){
      = ;
      = array('values' => array(0 => ));
   }
@@ -491,7 +491,7 @@ function _civicrm_api_call_nested_api(&, &,
       }
     }
   }
-  if(strtolower() == 'getsingle'){
+  if(strtolower() == 'getsingle' ||strtolower() == 'getsingle' ){
      = ['values'][0];
   }
 }