function instagram_feeds_node_presave in Instagram Feeds 7
Implements hook_node_presave().
File
- ./
instagram_feeds.module, line 135
Code
function instagram_feeds_node_presave($node) {
if (INSTAGRAM_FEEDS_SETTINGS_NODE_TYPE == $node->type) {
if (isset($node->field_instf_color_transparent) && 1 == $node->field_instf_color_transparent) {
foreach ($node->field_instf_color[LANGUAGE_NONE] as $key => $value) {
$node->field_instf_color[LANGUAGE_NONE][$key]['rgb'] = '#';
}
}
}
}