From f1b598ecbcc28304aa33d98d6c42ab29af1c2b42 Mon Sep 17 00:00:00 2001 From: Heshan Date: Sat, 5 Mar 2011 09:15:54 +0530 Subject: Adding lazyload for the .info file and preset has been added and completed the admin settings for the presets --- includes/preset.inc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'includes') 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' => '
', + '#suffix' => '
', ); + 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' => '
', '#suffix' => '
', ); -- cgit v1.2.3