- 1
- 2
- 3
- 4
$background_nid = _get_last_section_background($node);
$new_background_nid = ($background_nid == 47)?48:47;
$background_color = db_query("SELECT field_background_color_value FROM {field_revision_field_background_color} WHERE entity_id=:nid AND entity_type='node'", array(":nid" => $new_background_nid))->fetchField();
$style_background = "background-color: #".$background_color."; ";
Vasiliy 18.02.2014 19:55 # 0
guest 18.02.2014 20:04 # −2