You are here

function wsconfig_load in Web Service Data 7

Fetch a wsconfig object. Make sure that the wildcard you choose in the model entity definition fits the function name here.

Parameters

$wsconfig_id: Integer specifying the wsconfig id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

A fully-loaded $wsconfig object or FALSE if it cannot be loaded.

See also

wsconfig_load_multiple()

1 call to wsconfig_load()
wsconfig_load_by_name in modules/wsconfig/wsconfig.module
Fetch a wsconfig object. Make sure that the wildcard you choose in the model entity definition fits the function name here.
1 string reference to 'wsconfig_load'
wsconfig_entity_info in modules/wsconfig/wsconfig.module
Implements hook_entity_info().

File

modules/wsconfig/wsconfig.module, line 441
Main module for wsconfig

Code

function wsconfig_load($wsconfig_id, $reset = FALSE) {
  $wsconfigs = wsconfig_load_multiple(array(
    $wsconfig_id,
  ), array(), $reset);
  return reset($wsconfigs);
}