function theme_heartbeat_stream_overview in Heartbeat 6.4
Theme funtion for the stream overview form
1 theme call to theme_heartbeat_stream_overview()
- heartbeat_messages_access_types in ./
heartbeat.admin.inc - Menu callback to show a page with heartbeat access types Shows the several composed streams.
File
- ./
heartbeat.admin.inc, line 429 - Admnistration tasks for heartbeat.
Code
function theme_heartbeat_stream_overview($form) {
$headers = array(
t('Profile'),
t('Stream'),
t('Class'),
t('Module / Path'),
t('Operations'),
);
$types = $form['#parameters']['types'];
unset($form['#parameters']);
$rows = array();
foreach (element_children($form) as $key) {
$type = $types[drupal_strtolower($key)];
if (drupal_strtolower($key) == 'singleheartbeat') {
continue;
}
$rows[] = array(
drupal_render($form[$key]),
$type['name'],
$type['class'],
$type['module'] . '<br /><small>' . $type['path'] . '</small>',
l(t('configure'), 'admin/build/heartbeat/stream/' . drupal_strtolower($key)) . ' - ' . l(t('clone'), 'admin/build/heartbeat/stream/' . drupal_strtolower($key) . '/clone'),
);
}
$output = theme('table', $headers, $rows);
return $output;
}