You are here

function wsconfig_type_load in Web Service Data 7

Menu argument loader; Load a wsconfig type by string.

Parameters

$type: The machine-readable name of a wsconfig type to load.

Return value

A model type array or FALSE if $type does not exist.

5 calls to wsconfig_type_load()
drush_wsdata_get_endpoint in ./wsdata.drush.inc
Get an endpoint by type.
drush_wsdata_set_endpoint in ./wsdata.drush.inc
Drush command callback.
drush_wsdata_type_disable in ./wsdata.drush.inc
Disable a wsconfig type.
drush_wsdata_type_enable in ./wsdata.drush.inc
Enable a wsconfig type.
WsConfig::__construct in modules/wsconfig/wsconfig.entity.inc

File

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

Code

function wsconfig_type_load($type) {
  return wsconfig_get_types($type);
}