You are here

public function WsConfig::getReplacements in Web Service Data 7

1 call to WsConfig::getReplacements()
WsConfig::call in modules/wsconfig/wsconfig.entity.inc
Method for calling a webservice method.

File

modules/wsconfig/wsconfig.entity.inc, line 167
Entity classes

Class

WsConfig
The class used for wsconfig entities

Code

public function getReplacements($type) {
  if (!isset($this->data[$type . '_data_method'])) {
    return FALSE;
  }
  $method = $this->data[$type . '_data_method'];
  $matches = array();
  preg_match_all("/(%\\w+)/", $method, $matches);
  return $matches[0];
}