function _heartbeat_stream_config_unpack in Heartbeat 7
Helper function to unpack the settings into the root of the object.
3 calls to _heartbeat_stream_config_unpack()
- ctools_export_ui_heartbeat_stream::_edit_form in modules/
heartbeat_ui/ plugins/ export_ui/ ctools_export_ui_heartbeat_stream.class.php - Helper function with element for the settings editing form.
- heartbeat_stream_config_load in ./
heartbeat.streams.inc - Menu loader for the configuration object of a stream.
- _heartbeat_stream_config_load_all in ./
heartbeat.streams.inc - Implementation of ctools load all function.
File
- ./
heartbeat.streams.inc, line 164
Code
function _heartbeat_stream_config_unpack(HeartbeatStreamConfig &$streamConfig) {
if (!empty($streamConfig->settings)) {
foreach ($streamConfig->settings as $key => $value) {
$streamConfig->{$key} = $value;
}
}
}