You are here

function weight_entity_property_info_alter in Weight 7.2

Implements hook_entity_property_info_alter().

File

./weight.module, line 94

Code

function weight_entity_property_info_alter(&$info) {
  $info['node']['properties']['weight'] = array(
    'type' => 'integer',
    'label' => t('Weight'),
    'description' => t('Provides weight scores on nodes'),
    'getter callback' => 'weight_weight_property_get',
    'setter callback' => 'weight_weight_property_set',
  );
}