function theme_video_preset_admin_settings in Video 7.2
Same name and namespace in other branches
- 6.5 video.admin.inc \theme_video_preset_admin_settings()
1 theme call to theme_video_preset_admin_settings()
- video_preset_admin_settings in modules/
video_ui/ video.admin.inc - Video preset admin settings
File
- modules/
video_ui/ video.admin.inc, line 132 - Provides the administration settings for the Video Drupal module.
Code
function theme_video_preset_admin_settings($variables) {
$form = $variables['form'];
$header = array(
array(
'data' => t('Name'),
),
array(
'data' => t('Description'),
),
array(
'data' => t('Operations'),
'colspan' => 3,
),
);
$rows = array();
if (!empty($form['video_preset'])) {
foreach (element_children($form['video_preset']) as $id) {
$rows[] = array(
'data' => array(
drupal_render($form['video_preset'][$id]['status']),
drupal_render($form['video_preset'][$id]['description']),
drupal_render($form['video_preset'][$id]['edit']),
drupal_render($form['video_preset'][$id]['delete']),
drupal_render($form['video_preset'][$id]['export']),
),
);
}
}
$actions = drupal_render_children($form['actions']);
$output = drupal_render_children($form);
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'video-preset',
),
'empty' => t('No presets were found. Please use the <a href="@create-preset">Add preset</a> link to create a new Video preset or upload an existing Video preset feature module to your modules directory.', array(
'@create-preset' => url('admin/config/media/video/presets/add'),
)),
));
$output .= $actions;
return $output;
}