function units_get_converter in Units of Measurement 7
Retrieve information about a ctools plugin - units converter.
Parameters
string $converter: Name of a particular units converter plugin to return. If skipped, an array of all available units converters plugins will be returned
Return value
array Depending on whether $converter is provided it will be either a single array of information about provided $converter units converter plugin or array of information on all available units converter plugins
2 calls to units_get_converter()
- units_convert in ./
units.module - Convert value measured in one unit into value measured in another unit.
- units_measure_form in ./
units_ui.pages.inc - Generate editing form for entity type 'units_measure'.
File
- ./
units.module, line 395 - Provide API for managing and converting units of measurement.
Code
function units_get_converter($converter = NULL) {
ctools_include('plugins');
return ctools_get_plugins('units', 'converters', $converter);
}