function units_get_operator in Units of Measurement 7.2
Retrieve information about a cTools plugin - units operator.
Parameters
string $operator: Name of a particular units operator plugin to return. If skipped, an array of all available units operators plugins will be returned
Return value
array Depending on whether $operator is provided it will be either a single array of information about provided $operator units operator plugin or array of information on all available units operator plugins
6 calls to units_get_operator()
- units_field_devel_generate in units_field/
units_field.devel_generate.inc - Generate dummy values for Units field.
- units_mathematical_expression_load in ./
units.module - Load mathematical expression from database.
- units_operator_add_isolate_operand in plugins/
operator/ add.inc - units_operator_divide_isolate_operand in plugins/
operator/ divide.inc - units_operator_multiply_isolate_operand in plugins/
operator/ multiply.inc
File
- ./
units.module, line 427 - Provide API for managing and converting units of measurement.
Code
function units_get_operator($operator = NULL) {
ctools_include('plugins');
return ctools_get_plugins('units', 'operator', $operator);
}