function SampleProcessor::getData in Web Service Data 7
WsData provides a default getData implementation. This function must return a properly structured field array (including language, array of values, field names, etc...).
The default function returns a structured array as follows: Ex: array(LANGUAGE_NONE => array(0 => array('value' => 'somevalue')));
It is the same structure as generated by the default fields in Drupal core.
Overrides WsData::getData
File
- modules/
wsconfig/ wsconfig.api.php, line 89 - Describe the file
Class
- SampleProcessor
- Sample implementation of WsData
Code
function getData($key) {
// Your code here if need be
}