aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/preset.inc19
1 files changed, 13 insertions, 6 deletions
diff --git a/includes/preset.inc b/includes/preset.inc
index e06b9f6..30ea6ac 100644
--- a/includes/preset.inc
+++ b/includes/preset.inc
@@ -24,15 +24,18 @@ class video_preset {
$form = array();
$presets = video_preset_get_presets();
if (count($presets) == 0) {
- return $form['video_preset'] = array(
- '#markup' => t('No Features were found. Please use the !create_link link to create
- a new Feature module, or upload an existing Feature to your modules directory.',
- array('!create_link' => l(t('Create Feature'), 'admin/structure/features/create'))),
+ $form['video_preset'] = array(
+ '#markup' => t('No Preset were found. Please use the !create_link link to create
+ a new Video Preset, or upload an existing Feature to your modules directory.',
+ array('!create_link' => l(t('Create Video Preset'), 'admin/structure/video/add'))),
+ '#prefix' => '<div id="preset-checkboxes">',
+ '#suffix' => '</div>',
);
+ return $form;
}
$preset = array();
foreach ($presets as $id => $value) {
- $preset[$id] = $value['name'];
+ $preset[$id] = $value['name'] . ' ' . l(t('edit'), ('admin/structure/video/preset/' . $value['name']));
// $help[] = $value['name'] . ' - ' . $value['description'] . ' ' . l(t('edit'), preset_get_preset_path('video', $value['name']));
}
@@ -41,7 +44,11 @@ class video_preset {
'#title' => t('Video transcode presets'),
'#options' => $preset,
'#default_value' => variable_get('video_preset', array()),
-// '#description' => t('!list', array('!list' => theme('item_list', array('items' => $help)))),
+ '#description' => t('Please use the !manage_link link to manage
+ Video Presets. Use the !create_link link to create
+ a new Video Preset, or upload an existing Feature to your modules directory.',
+ array('!manage_link' => l(t('Manage Video Preset'), 'admin/structure/video'),
+ '!create_link' => l(t('Create Video Preset'), 'admin/structure/video/add'))),
'#prefix' => '<div id="preset-checkboxes">',
'#suffix' => '</div>',
);