aboutsummaryrefslogtreecommitdiff
path: root/includes/preset.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/preset.inc')
-rw-r--r--includes/preset.inc16
1 files changed, 12 insertions, 4 deletions
diff --git a/includes/preset.inc b/includes/preset.inc
index 195d3b9..e06b9f6 100644
--- a/includes/preset.inc
+++ b/includes/preset.inc
@@ -21,19 +21,27 @@ class video_preset {
* @return array $form
*/
public function admin_settings() {
- $presets = preset_get_presets('video');
+ $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'))),
+ );
+ }
$preset = array();
foreach ($presets as $id => $value) {
$preset[$id] = $value['name'];
- $help[] = $value['name'] . ' - ' . $value['description'] . ' ' . l(t('edit'), preset_get_preset_path('video', $value['name']));
+// $help[] = $value['name'] . ' - ' . $value['description'] . ' ' . l(t('edit'), preset_get_preset_path('video', $value['name']));
}
- $form = array();
+
$form['video_preset'] = array(
'#type' => 'checkboxes',
'#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('!list', array('!list' => theme('item_list', array('items' => $help)))),
'#prefix' => '<div id="preset-checkboxes">',
'#suffix' => '</div>',
);