mediamosa_transcode_profile_view($node, $view_mode = 'full')Implements hook_view().
sites/all/modules/mediamosa/core/node/mediamosa_node_mediamosa_transcode_profile.inc, line 158
<?php
function mediamosa_transcode_profile_view($node, $view_mode = 'full') {
// Reset the breadcrum.
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), NULL);
$breadcrumb[] = l(t('Administer'), 'admin');
$breadcrumb[] = l(t('MediaMosa'), 'admin/mediamosa');
$breadcrumb[] = l(t('Configuration'), 'admin/mediamosa/config');
$breadcrumb[] = l(t('Transcode profiles'), 'admin/mediamosa/config/transcode_profile');
drupal_set_breadcrumb($breadcrumb);
// Get the apps.
$apps = _mediamosa_get_apps();
// Default parameters.
$rows = array(
array(t('Title'), check_plain($node->title)),
array(t('Application'), isset($apps[$node->app_id]) ? $apps[$node->app_id] : 'Unknown or deleted application'),
array(t('Tool'), $node->tool),
array(t('File extension'), $node->file_extension),
array(t('Is default profile'), t(drupal_ucfirst(strtolower($node->is_default_profile)))),
);
// Optional parameters.
$all_options = mediamosa_transcode_profile::get_by_tool(NULL, $node->tool);
if (!empty($node->options)) {
foreach ($node->options as $key => $value) {
$rows[] = array($all_options[$key]['field_title'], check_plain($value));
}
}
// Add timestamps.
$rows[] = array(t('Created'), format_date($node->created, 'short'));
$rows[] = array(t('Changed'), format_date($node->changed, 'short'));
$node->content['transcode_profile'] = array(
'#markup' => theme('table', array('header' => array(t('Parameter'), t('Value')), 'rows' => $rows)),
);
return $node;
}
?>