diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-05 09:15:54 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-05 09:15:54 +0530 |
commit | f1b598ecbcc28304aa33d98d6c42ab29af1c2b42 (patch) | |
tree | f0ce361227b4dd257a23c3f496ac341effbca797 /includes | |
parent | 72f7b7109d1cdf3ec1f5fb022170dedc8c9dc5e1 (diff) | |
download | video-f1b598ecbcc28304aa33d98d6c42ab29af1c2b42.tar.gz video-f1b598ecbcc28304aa33d98d6c42ab29af1c2b42.tar.bz2 |
Adding lazyload for the .info file and preset has been added and completed the admin settings for the presets
Diffstat (limited to 'includes')
-rw-r--r-- | includes/preset.inc | 19 |
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>', ); |