function units_ctools_plugin_type in Units of Measurement 7.2
Same name and namespace in other branches
- 7 units.module \units_ctools_plugin_type()
Implements hook_ctools_plugin_type().
File
- ./
units.module, line 96 - Provide API for managing and converting units of measurement.
Code
function units_ctools_plugin_type() {
$plugins = array();
$plugins['operator'] = array(
'defaults' => array(
'title' => NULL,
'description' => NULL,
'sign' => NULL,
'transparent operand1' => 0,
'transparent operand2' => 0,
'precedence' => NULL,
'dimension check' => TRUE,
'evaluate callback' => NULL,
'dimension callback' => NULL,
'split quantity callback' => NULL,
'isolate operand callback' => NULL,
'sql evaluate fragment' => NULL,
'operator class' => 'UnitsMathematicalOperatorLinear',
),
);
return $plugins;
}