public function WeightNodeHandler::fields in Weight 7.2
File
- ./
weight.migrate.inc, line 25 - Migrate support for weight.
Class
Code
public function fields($entity_type, $bundle) {
$settings = _weight_get_settings($bundle);
if (!empty($settings) && $settings['enabled']) {
return array(
'weight' => t('The node weight ranging between @min and @max.', array(
'@max' => $settings['range'],
'@min' => (int) $settings['range'] * -1,
)),
);
}
}