function fivestar_ctools_content_subtype_alter in Fivestar 7.2
Implements hook_ctools_content_subtype_alter()
File
- ./
fivestar.module, line 1087
Code
function fivestar_ctools_content_subtype_alter(&$subtype, &$plugin) {
if ($plugin['name'] == 'entity_field' && isset($subtype['subtype_id'])) {
list($entity_type, $field_name) = explode(':', $subtype['subtype_id'], 2);
$field = field_info_field($field_name);
if ($field['type'] == 'fivestar') {
$subtype['render callback'] = 'fivestar_fivestar_field_content_type_render';
}
}
}