Index: kernel/content/ezcontentfunctioncollection.php =================================================================== --- kernel/content/ezcontentfunctioncollection.php (revision 21835) +++ kernel/content/ezcontentfunctioncollection.php (working copy) @@ -229,6 +229,22 @@ return $result; } + function fetchNodeByLanguageCode( $nodeID, $languageCode ) + { + $node = eZContentObjectTreeNode::fetch( $nodeID, $languageCode ); + if ( $node === null ) + { + $result = array( 'error' => array( 'error_type' => 'kernel', + 'error_code' => eZError::KERNEL_NOT_FOUND ) ); + } + else + { + $result = array( 'result' => $node ); + } + + return $result; + } + function fetchClass( $classID ) { //include_once( 'kernel/classes/ezcontentclass.php' ); Index: kernel/content/function_definition.php =================================================================== --- kernel/content/function_definition.php (revision 21835) +++ kernel/content/function_definition.php (working copy) @@ -64,6 +64,19 @@ 'type' => 'string', 'required' => false, 'default' => false ) ) ); +$FunctionList['node_by_language_code'] = array( 'name' => 'node_by_language_code', + 'operation_types' => array( 'read' ), + 'call_method' => array( 'class' => 'eZContentFunctionCollection', + 'method' => 'fetchNodeByLanguageCode' ), + 'parameter_type' => 'standard', + 'parameters' => array( array( 'name' => 'node_id', + 'type' => 'integer', + 'required' => false, + 'default' => false ), + array( 'name' => 'language_code', + 'type' => 'string', + 'required' => false, + 'default' => false ) ) ); $FunctionList['locale_list'] = array( 'name' => 'locale_list', 'operation_types' => array( 'read' ), 'call_method' => array( 'class' => 'eZContentFunctionCollection',