$success, 'query' => "Renaming variable $old_name to $new_name"); } function _remove_variable($name) { variable_del($name); return array('success' => TRUE, 'query' => "Removing variable $name"); } function _create_variable($name, $value) { variable_set($name, $value); return array('success' => TRUE, 'query' => "Creating variable $name new value: $value"); } function _modify_variable($name, $value_override) { /* * FIXME take care for correct handling of tree variables * for example description_gallery contains the array: * Array ( [cdm_dataportal_show_thumbnail_captions] => 1 [cdm_dataportal_media_maxextend] => 120 [cdm_dataportal_media_cols] => 4 ) * -----> solutions merge arrays !!! */ return _create_variable($name, $value_override); }