function oa_discussion_update_7106 in Open Atrium Discussion 7.2
Update icon to use font-awesome
File
- ./
oa_discussion.install, line 221 - oa_discussion.install
Code
function oa_discussion_update_7106() {
$term = taxonomy_get_term_by_name('Discussion Section', 'section_type');
if ($term) {
$term = current($term);
if (!empty($term->field_oa_icon_class[LANGUAGE_NONE][0]['value'])) {
if ($term->field_oa_icon_class[LANGUAGE_NONE][0]['value'] == 'icon-comments') {
$term->field_oa_icon_class[LANGUAGE_NONE][0]['value'] = 'fa fa-comments';
taxonomy_term_save($term);
}
}
}
}