/[drupal]/contributions/modules/youtube_cck/youtube_cck.install
ViewVC logotype

Contents of /contributions/modules/youtube_cck/youtube_cck.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Dec 13 20:58:24 2007 UTC (23 months, 1 week ago) by aaron
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
convert youtube_cck types to emfield
1 <?php
2 // $Id:$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function youtube_cck_install() {
8 _youtube_cck_convert_message();
9 }
10
11 function youtube_cck_update_1() {
12 _youtube_cck_convert_message();
13 }
14
15 function _youtube_cck_convert_message() {
16 drupal_set_message(t('The @youtube module is deprecated. It is highly recommended that you install the !emfield module and its included @emvideo module, and convert any @youtube types from the !conversion. Note that if you are using any custom code in template files to display videos in nodes, you may need to rewrite some code. Specifically, although the field names themselves will be untouched, the field formatters have changed. The formatter for youtube_video has become video_video, youtube_preview is now video_preview, and youtube_thumbnail is video_thumbnail.',
17 array(
18 '@youtube' => 'YouTube CCK',
19 '!emfield' => '<a href="http://drupal.org/project/emfield">Embedded Media Field</a>',
20 '@emvideo' => 'Embedded Video Field',
21 '!conversion' => l(t('conversion page'), 'admin/settings/youtube_cck/convert'),
22 )), 'error');
23 }

  ViewVC Help
Powered by ViewVC 1.1.2