function _heartbeat_get_fields in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 heartbeat.common.inc \_heartbeat_get_fields()
Helper function to get the fields
1 call to _heartbeat_get_fields()
- views_plugin_row_heartbeat_view::init in views/
plugins/ views_plugin_row_heartbeat_view.inc
File
- ./
heartbeat.common.inc, line 176 - Commonly functions used in heartbeat
Code
function _heartbeat_get_fields($table) {
$fields = array();
$schema = drupal_get_schema($table, true);
// Go through our schema
foreach ($schema['fields'] as $field => $info) {
$fields[$field] = isset($info['alias']) ? $info['alias'] : $field;
}
return $fields;
}