Hi. On this page we are keeping track of the state of the filmforge installation profile. We began in July 2007 by using TaTien's install_profile_api module. As of August 28th the install profile works! Please try using this profile and help us fix the bugs! Note that you will need to install some additional non drupal software to make it all work (ffmpeg and flowplayer). More info here: FilmForge/Installation. Thanks - schock

Please note that Anarcat attached this version to the page (instead of copy-pasting) for technical reason (whitespace) so if you want to do modifications, add an extra file, don't replace his, thanks.

   1 <?php
   2 /**
   3  * @file
   4  * Filmforge installation profile.
   5  *
   6  * This code was generated by the profile wizard and then heavily
   7  * hand-edited to add views, panels, blocks and menus
   8  *
   9  * @date 25-6-2007
  10  *
  11  * @todo there's still a few functions to implement (see the functions
  12  * at the end), and a README would be nice. look for other @todo in
  13  * this file for more information
  14  * 
  15  */
  16 
  17 /*
  18  * You must include the crud.inc file in your profile.  The file is
  19  * part of the install_profile_api module.
  20  *
  21  * @todo fix this path...?
  22  */
  23 include_once('crud.inc');
  24 
  25 /**
  26 * The modules that are enabled when this profile is installed.
  27 *
  28 * @return
  29 *  An array of modules to be enabled.
  30 */
  31 function filmforge_profile_modules() {
  32   
  33   return array(
  34 
  35     /* CCK */
  36     'content', 'date', 'fieldgroup', 'nodereference', 'number', 'optionwidgets', 'text', 'userreference', 'votingapi_field', 
  37 
  38     /* Core - optional */
  39     'aggregator', 'color', 'comment', 'contact', 'help', 'locale', 'menu', 'path', 'profile', 'search', 'taxonomy', 'throttle', 'upload', 
  40 
  41     /* Core - required */
  42     'block', 'filter', 'node', 'system', 'user', 'watchdog', 
  43 
  44     /* Image */
  45     'image', 'image_attach', 
  46 
  47     /* Licenses */
  48     'creativecommons_lite', 
  49 
  50     /* Multilanguage - i18n */
  51     'i18n', 'i18nblocks', 'i18nmenu', 'i18nprofile', 'i18ntaxonomy', 'i18nviews', 'translation', 
  52 
  53     /* Multilanguage - i18n - experimental */
  54     'i18ncontent', 'i18nstrings', 'i18nsync', 'ttext', 
  55 
  56     /* Other */
  57     'autolocale', 'date_api', 'diff', 'panels', 'pathauto', 'pearwiki_filter', 'recent_changes', 'wikitools', 
  58 
  59     /* Taxonomy */
  60     'tagadelic', 
  61 
  62     /* Video */
  63     'video', 'video_customfields', 'video_ffmpeg_helper', 'video_image', 'video_multidownload', 'video_optmetadata', 'video_params', 'video_upload', 
  64 
  65     /* Views */
  66     'nodecloud', 'views', 'views_bonus', 'views_rss', 'views_theme_wizard', 'views_ui', 
  67 
  68     /* Voting */
  69     'fivestar', 'votingapi', 
  70   
  71   );
  72   
  73 }  
  74   
  75 /**
  76 * Implementation of hook_profile_details().
  77 *
  78 * This contains an array of profile details for display from the main selection screen.
  79 */
  80 function filmforge_profile_details() {
  81   return array(
  82     'name' => st('Filmforge install profile'),
  83     'description' => st('This install profile installs a video-based community website.')
  84   );
  85 }
  86     
  87   
  88 /**
  89 * Implementation of hook_profile_final().
  90 *
  91 * FilmForge platform installation.
  92 */
  93 function filmforge_profile_final() {
  94 
  95   /* Build content types */
  96     $types = array (
  97   'image' => 
  98   array (
  99     'name' => 'Image',
 100     'module' => 'image',
 101     'description' => st('An image (with thumbnail). This is ideal for publishing photographs or screenshots.'),
 102     'type' => 'image',
 103     'has_title' => true,
 104     'title_label' => 'Title',
 105     'has_body' => true,
 106     'body_label' => 'Body',
 107     'custom' => false,
 108     'modified' => false,
 109     'locked' => true,
 110     'orig_type' => 'image',
 111     'is_new' => true,
 112   ),
 113   'page' => 
 114   array (
 115     'type' => 'page',
 116     'name' => 'Page',
 117     'module' => 'node',
 118     'description' => st('If you want to add a static page, like a contact page or an about page, use a page.'),
 119     'help' => '',
 120     'has_title' => '1',
 121     'title_label' => 'Title',
 122     'has_body' => '1',
 123     'body_label' => 'Body',
 124     'min_word_count' => '0',
 125     'custom' => '1',
 126     'modified' => '1',
 127     'locked' => '0',
 128     'orig_type' => 'page',
 129     'is_new' => true,
 130   ),
 131   'story' => 
 132   array (
 133     'type' => 'story',
 134     'name' => 'Story',
 135     'module' => 'node',
 136     'description' => st('Stories are articles in their simplest form: they have a title, a teaser and a body, but can be extended by other modules. The teaser is part of the body too. Stories may be used as a personal blog or for news articles.'),
 137     'help' => '',
 138     'has_title' => '1',
 139     'title_label' => 'Title',
 140     'has_body' => '1',
 141     'body_label' => 'Body',
 142     'min_word_count' => '0',
 143     'custom' => '1',
 144     'modified' => '1',
 145     'locked' => '0',
 146     'orig_type' => 'story',
 147     'is_new' => true,
 148   ),
 149   'video' => 
 150   array (
 151     'name' => 'Video',
 152     'module' => 'video',
 153     'description' => st('Allow a variety of video formats to be posted as nodes in your site'),
 154     'type' => 'video',
 155     'has_title' => true,
 156     'title_label' => 'Title',
 157     'has_body' => true,
 158     'body_label' => 'Body',
 159     'custom' => false,
 160     'modified' => false,
 161     'locked' => true,
 162     'orig_type' => 'video',
 163     'is_new' => true,
 164   ),
 165 );
 166   
 167   foreach ($types as $content_type) {
 168     install_add_content_type($content_type);
 169   }
 170 
 171   /* Path alias */
 172   path_set_alias('node/add/video', 'publish');
 173 
 174   /* Variables */
 175   
 176   variable_set('creativecommons_lite_video', 1);
 177   variable_set('file_downloads', '1');
 178   variable_set('filter_default_format', '1');
 179 //   variable_set('filter_html_1', 1);
 180   variable_set('fivestar_position_teaser_video', 'hidden');
 181   variable_set('fivestar_position_video', 'below');
 182   variable_set('fivestar_stars_video', '5');
 183   variable_set('fivestar_style_video', 'default');
 184   variable_set('fivestar_unvote_video', 1);
 185   variable_set('fivestar_video', 1);
 186   variable_set('i18n_browser', '1');
 187   variable_set('i18n_languages', array (
 188   'site_default' => 'en',
 189   'name' => 
 190   array (
 191     'fr' => 'French',
 192     'ko' => 'Korean',
 193     'en' => 'English',
 194   ),
 195   'rtl' => 
 196   array (
 197     'en' => 0,
 198     'fr' => 0,
 199     'ko' => 0,
 200   ),
 201   'native' => 
 202   array (
 203     'en' => 'English',
 204     'fr' => 'Français',
 205     'ko' => '한글',
 206   ),
 207   'enabled' => 
 208   array (
 209     'en' => 'en',
 210     'fr' => 'fr',
 211     'ko' => 'ko',
 212   ),
 213 ));
 214   variable_set('i18n_node_page', '1');
 215   variable_set('i18n_node_story', '1');
 216   variable_set('i18n_node_video', '0');
 217   variable_set('i18n_selection_mode', 'simple');
 218   variable_set('i18n_translation_links', '0');
 219   variable_set('i18n_translation_node_links', '1');
 220   variable_set('i18n_translation_workflow', '1');
 221   variable_set('i18n_variables', array (
 222   0 => 'site_name',
 223   1 => 'site_slogan',
 224   2 => 'site_mission',
 225   3 => 'site_footer',
 226   4 => 'anonymous',
 227   5 => 'blog_help',
 228   6 => 'story_help',
 229   7 => 'user_registration_help',
 230   8 => 'user_mail_welcome_subject',
 231   9 => 'user_mail_welcome_body',
 232   10 => 'user_mail_approval_subject',
 233   11 => 'user_mail_approval_body',
 234   12 => 'user_mail_pass_subject',
 235   13 => 'user_mail_pass_body',
 236   14 => 'menu_primary_menu',
 237   15 => 'menu_secondary_menu',
 238 ));
 239   variable_set('i18ntaxonomy_vocabularies', array (
 240   2 => 0,
 241   1 => 0,
 242 ));
 243   variable_set('image_attach_page', '1');
 244   variable_set('image_attach_size_body_video', 'thumbnail');
 245   variable_set('image_attach_size_teaser_video', 'thumbnail');
 246   variable_set('image_attach_story', '1');
 247   variable_set('image_attach_video', '0');
 248   variable_set('image_attach_weight_body_page', '0');
 249   variable_set('image_attach_weight_body_video', '0');
 250   variable_set('image_attach_weight_teaser_page', '0');
 251   variable_set('image_attach_weight_teaser_video', '0');
 252   variable_set('image_gallery_nav_vocabulary', 1);
 253   variable_set('image_max_upload_size', '800');
 254   variable_set('image_sizes', array (
 255   0 => 
 256   array (
 257     'label' => 'thumbnail',
 258     'width' => '200',
 259     'height' => '200',
 260   ),
 261   1 => 
 262   array (
 263     'label' => 'preview',
 264     'width' => '640',
 265     'height' => '640',
 266   ),
 267   2 => 
 268   array (
 269     'label' => 'sidebar',
 270     'width' => '150',
 271     'height' => '150',
 272   ),
 273   3 => 
 274   array (
 275     'label' => 'videoplayer',
 276     'width' => '400',
 277     'height' => '300',
 278   ),
 279   4 => 
 280   array (
 281     'label' => '',
 282     'width' => '',
 283     'height' => '',
 284   ),
 285 ));
 286   variable_set('menu_primary_menu', 2);
 287   variable_set('menu_secondary_menu', 2);
 288 //   variable_set('menu_trim_menu_1', '1');
 289 //   variable_set('menu_trim_menu_2', '0');
 290   variable_set('node_options_forum', array (
 291   0 => 'status',
 292 ));
 293   variable_set('node_options_page', array (
 294   0 => 'status',
 295   1 => 'revision',
 296 ));
 297   variable_set('node_options_story', array (
 298   0 => 'status',
 299   1 => 'promote',
 300 ));
 301   variable_set('node_options_video', array (
 302   0 => 'status',
 303 ));
 304   variable_set('pearwiki_filter_ignore_regexp_4', '');
 305   variable_set('pearwiki_filter_ignore_tags_4', '');
 306   variable_set('pearwiki_filter_image_base_4', 'files/');
 307   variable_set('pearwiki_filter_interwiki_mapping_4', 'Local drupal path | path | <path>
 308 groups.drupal.org | gdo | http://groups.drupal.org/freelinking/%s
 309 Wikipedia | wp | http://en.wikipedia.org/wiki/%s
 310 ');
 311   variable_set('pearwiki_filter_pear_path_4', '/var/alternc/html/f/filmforge/www/drupal-5.1/sites/all/modules/pearwiki_filter/');
 312   variable_set('pearwiki_filter_space_replacement_4', '');
 313   variable_set('pearwiki_filter_syntax_4', 'Mediawiki');
 314   variable_set('pearwiki_filter_use_freelinking_4', 0);
 315   variable_set('pearwiki_filter_use_image_4', 1);
 316   variable_set('pearwiki_filter_use_liquid_4', 0);
 317   variable_set('pearwiki_filter_use_wiki_links_4', 1);
 318   variable_set('pearwiki_filter_use_wikitools_4', 0);
 319   variable_set('pearwiki_filter_wikilink_base_4', 'wiki/');
 320   variable_set('site_footer', 'This site was configured using the Filmforge install profile.');
 321   variable_set('site_mission', 'FilmForge is a version of the content management system <a href="http://www.drupal.org">Drupal</a>, tailored to the needs of videomaking communities. FilmForge makes it simple to install and run your own video sharing site.');
 322   variable_set('site_name', 'FilmForge');
 323   variable_set('site_slogan', 'web video for all!');
 324   variable_set('tagadelic_block_tags_2', '12');
 325   variable_set('tagadelic_block_title_2', 'Tag cloud');
 326   variable_set('tagadelic_levels', '6');
 327   variable_set('tagadelic_page_amount', '60');
 328   variable_set('tagadelic_sort_order', 'title,asc');
 329   variable_set('theme_default', 'filmforge');
 330   variable_set('theme_filmforge_settings', array (
 331   'toggle_logo' => 1,
 332   'toggle_name' => 1,
 333   'toggle_slogan' => 1,
 334   'toggle_mission' => 1,
 335   'toggle_node_user_picture' => 0,
 336   'toggle_comment_user_picture' => 0,
 337   'toggle_search' => 0,
 338   'toggle_favicon' => 1,
 339   'default_logo' => 0,
 340   'logo_path' => '',
 341   'logo_upload' => '',
 342   'default_favicon' => 1,
 343   'favicon_path' => '',
 344   'favicon_upload' => '',
 345   'op' => 'Save configuration',
 346   'form_token' => '67b00845f930a0a9867b5f27d3e331f3',
 347 ));
 348   variable_set('theme_settings', array (
 349   'toggle_node_info_page' => false,
 350 ));
 351   variable_set('upload_extensions_default', 'jpg jpeg gif png txt html doc xls pdf ppt pps avi mpeg mpg mov rm flv wmv 3gp mp4 dir dcr');
 352   variable_set('upload_uploadsize_default', 100);
 353   variable_set('upload_usersize_default', 1000);
 354   variable_set('upload_video', '1');
 355   variable_set('video_block_limit_0', '10');
 356   variable_set('video_block_limit_1', '10');
 357   variable_set('video_block_limit_2', '10');
 358   variable_set('video_block_limit_3', '10');
 359   variable_set('video_block_title_0', 'Latest videos');
 360   variable_set('video_block_title_1', 'Top videos');
 361   variable_set('video_block_title_2', 'Most played videos');
 362   variable_set('video_block_title_3', 'Most downloaded');
 363   // @todo needs to be documented in README
 364 //  variable_set('video_cortado', 'http://filmforge.koumbit.net/cortado.jar');
 365   variable_set('video_displaydownloadlink', '1');
 366   variable_set('video_displaydownloadmenutab', '0');
 367   variable_set('video_displayfilesize', '1');
 368   variable_set('video_displayplaylink', '0');
 369   variable_set('video_displayplaymenutab', '0');
 370   variable_set('video_displayplaytime', '1');
 371   variable_set('video_download_ext', 'mov,wmv,rm,flv,avi,divx,mpg,mpeg,mp4,zip');
 372   variable_set('video_downloadcounter', '1');
 373   variable_set('video_ffmpeg_helper_auto_conversion', 1);
 374   variable_set('video_ffmpeg_helper_auto_cvr_audio_bitrate', '64');
 375   variable_set('video_ffmpeg_helper_auto_cvr_busy_video_path', 'busy.flv');
 376   variable_set('video_ffmpeg_helper_auto_cvr_options', '-y -i %videofile -f flv -ar 22050 -ab %audiobitrate -s %size -b %videobitrate %convertfile');
 377   variable_set('video_ffmpeg_helper_auto_cvr_video_bitrate', '200');
 378   variable_set('video_ffmpeg_helper_auto_cvr_width', '400');
 379   variable_set('video_ffmpeg_helper_auto_playtime', 1);
 380   variable_set('video_ffmpeg_helper_auto_resolution', 1);
 381   variable_set('video_ffmpeg_helper_auto_thumbnail', 1);
 382   variable_set('video_ffmpeg_helper_auto_thumbnail_debug', 0);
 383   variable_set('video_ffmpeg_helper_auto_thumbnail_only', 0);
 384   variable_set('video_ffmpeg_helper_auto_thumbnail_seek', '2');
 385   variable_set('video_ffmpeg_helper_ffmpeg_path', '/usr/bin/ffmpeg');
 386   variable_set('video_ffmpeg_helper_thumbnailer_options', '-i %videofile -an -y -f mjpeg -ss %seek -vframes 1 %thumbfile');
 387   variable_set('video_flvplayerloader', 'FlowPlayer.swf');
 388   variable_set('video_flvplayerloader_autoplay', '1');
 389   variable_set('video_flvplayerloader_fullscreen', 'http://filmforge.koumbit.net/fullscreen.js');
 390   variable_set('video_image_promote_thumbnail', 0);
 391   variable_set('video_image_publish_thumbnail', 0);
 392   variable_set('video_multidownload', '1');
 393   variable_set('video_playcounter', '1');
 394   variable_set('video_playinbody', '1');
 395   variable_set('views_defaults', array (
 396   'taxonomy_directory' => 'disabled',
 397 ));
 398   variable_set('wikitools_hijack_freelinking', 1);
 399   variable_set('wikitools_main_page_title', 'Main Page');
 400   variable_set('wikitools_node_types', array (
 401   'image' => 'image',
 402   'test' => 'test',
 403 ));
 404   variable_set('wikitools_options', array (
 405   'node creation' => 'node creation',
 406   'node search' => 'node search',
 407   'auto redirect' => 'auto redirect',
 408   'unique titles' => 'unique titles',
 409   'move protection' => 'move protection',
 410   'delete protection' => 'delete protection',
 411   'underscore as space' => 'underscore as space',
 412 ));
 413   variable_set('wikitools_path', 'wiki');
 414   
 415   /* Permissions */
 416   
 417     install_set_permissions(install_add_role('admin'), array (
 418   0 => 'access news feeds',
 419   1 => 'administer news feeds',
 420   2 => 'administer audio',
 421   3 => 'create audio',
 422   4 => 'download audio',
 423   5 => 'edit own audio',
 424   6 => 'play audio',
 425   7 => 'view download stats',
 426   8 => 'administer blocks',
 427   9 => 'use PHP for block visibility',
 428   10 => 'access comments',
 429   11 => 'administer comments',
 430   12 => 'post comments',
 431   13 => 'post comments without approval',
 432   14 => 'access site-wide contact form',
 433   15 => 'access devel information',
 434   16 => 'execute php code',
 435   17 => 'switch users',
 436   18 => 'administer filters',
 437   19 => 'rate content',
 438   20 => 'use PHP for fivestar target',
 439   21 => 'view ratings',
 440   22 => 'administer all languages',
 441   23 => 'create images',
 442   24 => 'edit images',
 443   25 => 'edit own images',
 444   26 => 'view original images',
 445   27 => 'administer locales',
 446   28 => 'administer menu',
 447   29 => 'access content',
 448   30 => 'administer content types',
 449   31 => 'administer nodes',
 450   32 => 'create page content',
 451   33 => 'create story content',
 452   34 => 'edit own page content',
 453   35 => 'edit own story content',
 454   36 => 'edit page content',
 455   37 => 'edit story content',
 456   38 => 'revert revisions',
 457   39 => 'view revisions',
 458   40 => 'access all panels',
 459   41 => 'create panels',
 460   42 => 'administer url aliases',
 461   43 => 'create url aliases',
 462   44 => 'administer pathauto',
 463   45 => 'access profile wizard',
 464   46 => 'administer search',
 465   47 => 'search content',
 466   48 => 'use advanced search',
 467   49 => 'access administration pages',
 468   50 => 'administer site configuration',
 469   51 => 'select different theme',
 470   52 => 'administer taxonomy',
 471   53 => 'translate nodes',
 472   54 => 'upload files',
 473   55 => 'view uploaded files',
 474   56 => 'access user profiles',
 475   57 => 'administer access control',
 476   58 => 'administer users',
 477   59 => 'change own username',
 478   60 => 'access video',
 479   61 => 'administer video',
 480   62 => 'create video',
 481   63 => 'download video',
 482   64 => 'edit own video',
 483   65 => 'play video',
 484   66 => 'view download counter',
 485   67 => 'view play counter',
 486   68 => 'insert custom fields',
 487   69 => 'create multi-file downloads',
 488   70 => 'insert optional metadata',
 489   71 => 'insert object params',
 490   72 => 'upload video files',
 491   73 => 'access all views',
 492   74 => 'administer views',
 493   75 => 'administer voting api',
 494   76 => 'register vote',
 495 ));
 496   install_set_permissions(1, array (
 497   0 => 'access news feeds',
 498   1 => 'download audio',
 499   2 => 'play audio',
 500   3 => 'view download stats',
 501   4 => 'access site-wide contact form',
 502   5 => 'rate content',
 503   6 => 'view ratings',
 504   7 => 'view original images',
 505   8 => 'access content',
 506   9 => 'search content',
 507   10 => 'access user profiles',
 508   11 => 'access video',
 509   12 => 'download video',
 510   13 => 'play video',
 511   14 => 'view download counter',
 512   15 => 'view play counter',
 513   16 => 'register vote',
 514 ));
 515   install_set_permissions(2, array (
 516   0 => 'access news feeds',
 517   1 => 'download audio',
 518   2 => 'play audio',
 519   3 => 'view download stats',
 520   4 => 'access comments',
 521   5 => 'post comments',
 522   6 => 'post comments without approval',
 523   7 => 'access site-wide contact form',
 524   8 => 'rate content',
 525   9 => 'view ratings',
 526   10 => 'view original images',
 527   11 => 'access content',
 528   12 => 'search content',
 529   13 => 'access user profiles',
 530   14 => 'access video',
 531   15 => 'download video',
 532   16 => 'play video',
 533   17 => 'view download counter',
 534   18 => 'view play counter',
 535   19 => 'register vote',
 536 ));
 537   install_set_permissions(install_add_role('editor'), array (
 538   0 => 'access news feeds',
 539   1 => 'create audio',
 540   2 => 'download audio',
 541   3 => 'edit own audio',
 542   4 => 'play audio',
 543   5 => 'view download stats',
 544   6 => 'administer blocks',
 545   7 => 'access comments',
 546   8 => 'administer comments',
 547   9 => 'post comments',
 548   10 => 'post comments without approval',
 549   11 => 'access site-wide contact form',
 550   12 => 'rate content',
 551   13 => 'view ratings',
 552   14 => 'create images',
 553   15 => 'edit images',
 554   16 => 'edit own images',
 555   17 => 'view original images',
 556   18 => 'access content',
 557   19 => 'administer nodes',
 558   20 => 'create page content',
 559   21 => 'create story content',
 560   22 => 'edit own page content',
 561   23 => 'edit own story content',
 562   24 => 'edit page content',
 563   25 => 'edit story content',
 564   26 => 'revert revisions',
 565   27 => 'view revisions',
 566   28 => 'create url aliases',
 567   29 => 'search content',
 568   30 => 'use advanced search',
 569   31 => 'translate nodes',
 570   32 => 'access user profiles',
 571   33 => 'administer access control',
 572   34 => 'administer users',
 573   35 => 'change own username',
 574   36 => 'access video',
 575   37 => 'administer video',
 576   38 => 'create video',
 577   39 => 'download video',
 578   40 => 'edit own video',
 579   41 => 'play video',
 580   42 => 'view download counter',
 581   43 => 'view play counter',
 582   44 => 'insert custom fields',
 583   45 => 'create multi-file downloads',
 584   46 => 'insert optional metadata',
 585   47 => 'insert object params',
 586   48 => 'upload video files',
 587   49 => 'access all views',
 588   50 => 'administer views',
 589   51 => 'register vote',
 590 ));
 591 
 592   /* Themes */
 593   install_enable_theme("filmforge");
 594 
 595   _filmforge_profile_create_views();
 596   _filmforge_profile_create_panels();
 597   _filmforge_profile_create_blocks();
 598 }
 599 
 600 /**
 601  * create a few views used in blocks and panels
 602  *
 603  * those views were exported from the running install and plain pasted here
 604  */
 605 function _filmforge_profile_create_views() {
 606   //video_featured_last_block
 607   $view = new stdClass();
 608   $view->name = 'video_featured_last_block';
 609   $view->description = 'Shows last featured videos';
 610   $view->access = array (
 611 );
 612   $view->view_args_php = '';
 613   $view->block = TRUE;
 614   $view->block_title = '';
 615   $view->block_header = '';
 616   $view->block_header_format = '1';
 617   $view->block_footer = '';
 618   $view->block_footer_format = '1';
 619   $view->block_empty = '';
 620   $view->block_empty_format = '1';
 621   $view->block_type = 'list';
 622   $view->nodes_per_block = '5';
 623   $view->block_more = TRUE;
 624   $view->block_use_page_header = FALSE;
 625   $view->block_use_page_footer = FALSE;
 626   $view->block_use_page_empty = FALSE;
 627   $view->sort = array (
 628     array (
 629       'tablename' => 'node',
 630       'field' => 'created',
 631       'sortorder' => 'DESC',
 632       'options' => 'normal',
 633     ),
 634   );
 635   $view->argument = array (
 636   );
 637   $view->field = array (
 638 /*    array (
 639       'tablename' => 'video',
 640       'field' => 'video_image',
 641       'label' => '',
 642       'options' => 'sidebar',
 643     ),*/
 644     array (
 645       'tablename' => 'node',
 646       'field' => 'title',
 647       'label' => '',
 648       'handler' => 'views_handler_field_nodelink',
 649       'options' => 'link',
 650     ),
 651     array (
 652       'tablename' => 'users',
 653       'field' => 'name',
 654       'label' => '',
 655     ),
 656   );
 657   $view->filter = array (
 658     array (
 659       'tablename' => 'node',
 660       'field' => 'type',
 661       'operator' => 'OR',
 662       'options' => '',
 663       'value' => array (
 664   0 => 'video',
 665 ),
 666     ),
 667     array (
 668       'tablename' => 'node',
 669       'field' => 'status',
 670       'operator' => '=',
 671       'options' => '',
 672       'value' => '1',
 673     ),
 674     array (
 675       'tablename' => 'node',
 676       'field' => 'promote',
 677       'operator' => '=',
 678       'options' => '',
 679       'value' => '1',
 680     ),
 681   );
 682   $view->exposed_filter = array (
 683   );
 684   $view->requires = array('node', 'video', 'users');
 685   $views[$view->name] = $view;
 686 
 687   //thisuserscontent
 688   $view = new stdClass();
 689   $view->name = 'thisuserscontent';
 690   $view->description = 'Other content by this user';
 691   $view->access = array (
 692 );
 693   $view->view_args_php = '';
 694   $view->page = TRUE;
 695   $view->page_title = 'Other content by this user';
 696   $view->page_header = '';
 697   $view->page_header_format = '4';
 698   $view->page_footer = '';
 699   $view->page_footer_format = '4';
 700   $view->page_empty = '';
 701   $view->page_empty_format = '4';
 702   $view->page_type = 'teaser';
 703   $view->url = 'thisuserscontent';
 704   $view->use_pager = TRUE;
 705   $view->nodes_per_page = '10';
 706   $view->block = TRUE;
 707   $view->block_title = 'Other content by this user';
 708   $view->block_header = '';
 709   $view->block_header_format = '4';
 710   $view->block_footer = '';
 711   $view->block_footer_format = '4';
 712   $view->block_empty = '';
 713   $view->block_empty_format = '4';
 714   $view->block_type = 'list';
 715   $view->nodes_per_block = '5';
 716   $view->block_more = TRUE;
 717   $view->block_use_page_header = FALSE;
 718   $view->block_use_page_footer = FALSE;
 719   $view->block_use_page_empty = FALSE;
 720   $view->sort = array (
 721   );
 722   $view->argument = array (
 723     array (
 724       'type' => 'uid',
 725       'argdefault' => '2',
 726       'title' => '',
 727       'options' => '',
 728       'wildcard' => '%1',
 729       'wildcard_substitution' => '',
 730     ),
 731   );
 732   $view->field = array (
 733     array (
 734       'tablename' => 'node',
 735       'field' => 'title',
 736       'label' => '',
 737       'handler' => 'views_handler_field_nodelink',
 738       'options' => 'link',
 739     ),
 740 /*    array (
 741       'tablename' => 'video',
 742       'field' => 'video_image',
 743       'label' => '',
 744       'options' => 'sidebar',
 745     ),*/
 746     array (
 747       'tablename' => 'image',
 748       'field' => 'nid',
 749       'label' => '',
 750       'handler' => 'image_views_handler_image_img',
 751       'options' => 'thumbnail',
 752     ),
 753   );
 754   $view->filter = array (
 755     array (
 756       'tablename' => 'node',
 757       'field' => 'status',
 758       'operator' => '=',
 759       'options' => '',
 760       'value' => '1',
 761     ),
 762   );
 763   $view->exposed_filter = array (
 764   );
 765   $view->requires = array('node', 'video', 'image');
 766   $views[$view->name] = $view;
 767 
 768   //latest_featured_videos_in_panels
 769   $view = new stdClass();
 770   $view->name = 'latest_featured_videos_in_panels';
 771   $view->description = 'Shows featured videos in panel layout';
 772   $view->access = array (
 773 );
 774   $view->view_args_php = '';
 775   $view->page = TRUE;
 776   $view->page_title = '';
 777   $view->page_header = '';
 778   $view->page_header_format = '1';
 779   $view->page_footer = '';
 780   $view->page_footer_format = '1';
 781   $view->page_empty = 'There is no recent video activity';
 782   $view->page_empty_format = '1';
 783   $view->page_type = 'list';
 784   $view->url = 'latest_featured_video';
 785   $view->use_pager = FALSE;
 786   $view->nodes_per_page = '1';
 787   $view->menu = TRUE;
 788   $view->menu_title = '';
 789   $view->menu_tab = FALSE;
 790   $view->menu_tab_weight = '0';
 791   $view->menu_tab_default = FALSE;
 792   $view->menu_tab_default_parent = NULL;
 793   $view->menu_parent_tab_weight = '0';
 794   $view->menu_parent_title = '';
 795   $view->sort = array (
 796     array (
 797       'tablename' => 'node',
 798       'field' => 'created',
 799       'sortorder' => 'DESC',
 800       'options' => 'normal',
 801     ),
 802   );
 803   $view->argument = array (
 804   );
 805   $view->field = array (
 806     array (
 807       'tablename' => 'node',
 808       'field' => 'title',
 809       'label' => 'Featured video:',
 810       'handler' => 'views_handler_field_nodelink',
 811       'options' => 'link',
 812     ),
 813     array (
 814       'tablename' => 'users',
 815       'field' => 'name',
 816       'label' => '',
 817     ),
 818     array (
 819       'tablename' => 'video',
 820       'field' => 'video_show_video',
 821       'label' => '',
 822     ),
 823     array (
 824       'tablename' => 'video',
 825       'field' => 'play_counter',
 826       'label' => 'Play count',
 827     ),
 828   );
 829   $view->filter = array (
 830     array (
 831       'tablename' => 'node',
 832       'field' => 'type',
 833       'operator' => 'OR',
 834       'options' => '',
 835       'value' => array (
 836   0 => 'video',
 837 ),
 838     ),
 839     array (
 840       'tablename' => 'node',
 841       'field' => 'status',
 842       'operator' => '=',
 843       'options' => '',
 844       'value' => '1',
 845     ),
 846     array (
 847       'tablename' => 'node',
 848       'field' => 'promote',
 849       'operator' => '=',
 850       'options' => '',
 851       'value' => '1',
 852     ),
 853   );
 854   $view->exposed_filter = array (
 855   );
 856   $view->requires = array('node', 'users', 'video');
 857   $views[$view->name] = $view;
 858 
 859   //featured_videos_in_panels
 860   $view = new stdClass();
 861   $view->name = 'featured_videos_in_panels';
 862   $view->description = 'Shows featured videos in panel layout';
 863   $view->access = array (
 864 );
 865   $view->view_args_php = '$offset = 1;';
 866   $view->page = TRUE;
 867   $view->page_title = '';
 868   $view->page_header = '';
 869   $view->page_header_format = '1';
 870   $view->page_footer = '';
 871   $view->page_footer_format = '1';
 872   $view->page_empty = 'There is no recent video activity';
 873   $view->page_empty_format = '1';
 874   $view->page_type = 'panels_twocol';
 875   $view->url = 'frontpagevideos';
 876   $view->use_pager = TRUE;
 877   $view->nodes_per_page = '11';
 878   $view->menu = TRUE;
 879   $view->menu_title = '';
 880   $view->menu_tab = FALSE;
 881   $view->menu_tab_weight = '0';
 882   $view->menu_tab_default = FALSE;
 883   $view->menu_tab_default_parent = NULL;
 884   $view->menu_parent_tab_weight = '0';
 885   $view->menu_parent_title = '';
 886   $view->sort = array (
 887     array (
 888       'tablename' => 'node',
 889       'field' => 'created',
 890       'sortorder' => 'DESC',
 891       'options' => 'normal',
 892     ),
 893   );
 894   $view->argument = array (
 895   );
 896   $view->field = array (
 897     array (
 898       'tablename' => 'node',
 899       'field' => 'title',
 900       'label' => 'Title',
 901       'handler' => 'views_handler_field_nodelink',
 902       'sortable' => '1',
 903       'options' => 'link',
 904     ),
 905     array (
 906       'tablename' => 'node',
 907       'field' => 'changed',
 908       'label' => 'Last Updated',
 909       'handler' => 'views_handler_field_date_small',
 910       'sortable' => '1',
 911       'defaultsort' => 'DESC',
 912     ),
 913     array (
 914       'tablename' => 'users',
 915       'field' => 'name',
 916       'label' => 'Author',
 917     ),
 918 /*    array (
 919       'tablename' => 'video',
 920       'field' => 'video_image',
 921       'label' => 'Preview / Play',
 922       'options' => 'preview',
 923     ),*/
 924     array (
 925       'tablename' => 'node',
 926       'field' => 'body',
 927       'label' => '',
 928       'handler' => 'views_handler_field_teaser',
 929     ),
 930     array (
 931       'tablename' => 'video',
 932       'field' => 'play_counter',
 933       'label' => 'Play count',
 934     ),
 935     array (
 936       'tablename' => 'votingapi_vote_vote_percent',
 937       'field' => 'value',
 938       'label' => '',
 939       'handler' => 'fivestar_views_value_display_handler',
 940     ),
 941   );
 942   $view->filter = array (
 943     array (
 944       'tablename' => 'node',
 945       'field' => 'type',
 946       'operator' => 'OR',
 947       'options' => '',
 948       'value' => array (
 949   0 => 'video',
 950 ),
 951     ),
 952     array (
 953       'tablename' => 'node',
 954       'field' => 'status',
 955       'operator' => '=',
 956       'options' => '',
 957       'value' => '1',
 958     ),
 959     array (
 960       'tablename' => 'node',
 961       'field' => 'promote',
 962       'operator' => '=',
 963       'options' => '',
 964       'value' => '1',
 965     ),
 966   );
 967   $view->exposed_filter = array (
 968   );
 969   $view->requires = array('node', 'users', 'video', 'votingapi_vote_vote_percent');
 970   $views[$view->name] = $view;
 971   
 972   // video tracker
 973     $view = new stdClass();
 974   $view->name = 'video_tracker';
 975   $view->description = 'Shows all recent video activity (table format)';
 976   $view->access = array (
 977 );
 978   $view->view_args_php = '';
 979   $view->page = TRUE;
 980   $view->page_title = 'Recent videos';
 981   $view->page_header = '';
 982   $view->page_header_format = '1';
 983   $view->page_footer = '';
 984   $view->page_footer_format = '1';
 985   $view->page_empty = 'There is no recent video activity';
 986   $view->page_empty_format = '1';
 987   $view->page_type = 'teaser';
 988   $view->url = 'videos/tracker';
 989   $view->use_pager = TRUE;
 990   $view->nodes_per_page = '20';
 991   $view->menu = TRUE;
 992   $view->menu_title = '';
 993   $view->menu_tab = FALSE;
 994   $view->menu_tab_weight = '0';
 995   $view->menu_tab_default = FALSE;
 996   $view->menu_tab_default_parent = NULL;
 997   $view->menu_parent_tab_weight = '0';
 998   $view->menu_parent_title = '';
 999   $view->block = TRUE;
1000   $view->block_title = '';
1001   $view->block_header = '';
1002   $view->block_header_format = '1';
1003   $view->block_footer = '';
1004   $view->block_footer_format = '1';
1005   $view->block_empty = '';
1006   $view->block_empty_format = '1';
1007   $view->block_type = 'summary_combo';
1008   $view->nodes_per_block = '5';
1009   $view->block_more = FALSE;
1010   $view->block_use_page_header = FALSE;
1011   $view->block_use_page_footer = FALSE;
1012   $view->block_use_page_empty = FALSE;
1013   $view->sort = array (
1014     array (
1015       'tablename' => 'node',
1016       'field' => 'created',
1017       'sortorder' => 'DESC',
1018       'options' => 'normal',
1019     ),
1020   );
1021   $view->argument = array (
1022   );
1023   $view->field = array (
1024     array (
1025       'tablename' => 'node',
1026       'field' => 'title',
1027       'label' => 'Title',
1028       'handler' => 'views_handler_field_nodelink',
1029       'sortable' => '1',
1030       'options' => 'link',
1031     ),
1032     array (
1033       'tablename' => 'node',
1034       'field' => 'changed',
1035       'label' => 'Last Updated',
1036       'handler' => 'views_handler_field_date_small',
1037       'sortable' => '1',
1038       'defaultsort' => 'DESC',
1039     ),
1040     array (
1041       'tablename' => 'users',
1042       'field' => 'name',
1043       'label' => 'Author',
1044     ),
1045 /*    array (
1046       'tablename' => 'video',
1047       'field' => 'video_image',
1048       'label' => 'Preview / Play',
1049     ),*/
1050     array (
1051       'tablename' => 'video',
1052       'field' => 'play_counter',
1053       'label' => 'Play count',
1054     ),
1055   );
1056   $view->filter = array (
1057     array (
1058       'tablename' => 'node',
1059       'field' => 'type',
1060       'operator' => 'OR',
1061       'options' => '',
1062       'value' => array (
1063   0 => 'video',
1064 ),
1065     ),
1066     array (
1067       'tablename' => 'node',
1068       'field' => 'status',
1069       'operator' => '=',
1070       'options' => '',
1071       'value' => '1',
1072     ),
1073   );
1074   $view->exposed_filter = array (
1075   );
1076   $view->requires = array(node, users, video);
1077   $views[$view->name] = $view;
1078 
1079   views_load_cache();
1080   foreach ($views as $view) {
1081     views_sanitize_view($view);
1082     _views_save_view($view);
1083   }
1084 
1085 }
1086 
1087 /**
1088  * create the front panel
1089  *
1090  * @todo implement this, look at the raw data in the panels_info and
1091  * panels_area tables and create a nice-looking $panels object to pass
1092  * to panels_save_panels
1093  * @see panels_save_panels
1094  */
1095 function _filmforge_profile_create_panels() {
1096 
1097 }
1098 
1099 /**
1100  * create a few blocks
1101  *
1102  * Bottom:
1103  * * thisuserscontent (view)
1104  * * Creativecommon license
1105  *
1106  * Header:
1107  * * Search form
1108  *
1109  * Header top:
1110  * * Language switcher
1111  * * Left sidebar
1112  * * Publish Button (multilingual)
1113  *  (made of 2 blocks:
1114  *   * Publish button (en): the string:
1115 	<a href="http://filmforge.koumbit.net/fr/publish"><img src="http://filmforge.koumbit.net/sites/all/themes/filmforge/images/publier.png" alt="publish your video" align="center"></a>
1116  *   * Publish button (fr): the string:
1117 	<a href="http://filmforge.koumbit.net/en/publish"><img src="http://filmforge.koumbit.net/sites/all/themes/filmforge/images/publish.png" alt="publish your video" align="center"></a>
1118  *
1119  * * Secondary Links
1120  * * Author information	
1121  * * Navigation	
1122  * * Tag cloud
1123  *
1124  * Right sidebar:
1125  * * thisuserscontent	
1126  * * video_featured_last_block	
1127  * * Most played videos
1128  * * Most downloaded	
1129  * * Top videos	
1130  * * Latest videos	
1131  * * Random video	
1132  */
1133 function _filmforge_profile_create_blocks() {
1134 
1135 
1136   /* Blocks */
1137   
1138   install_add_block(array (
1139   'module' => 'i18nblocks',
1140   'delta' => '1',
1141   'theme' => 'filmforge',
1142   'status' => '1',
1143   'weight' => '-10',
1144   'region' => 'left',
1145   'custom' => '0',
1146   'throttle' => '0',
1147   'visibility' => '0',
1148   'pages' => '',
1149   'title' => '',
1150 ));
1151   install_add_block(array (
1152   'module' => 'views',
1153   'delta' => 'comments_recent',
1154   'theme' => 'filmforge',
1155   'status' => '0',
1156   'weight' => '0',
1157   'region' => '',
1158   'custom' => '0',
1159   'throttle' => '0',
1160   'visibility' => '0',
1161   'pages' => '',
1162   'title' => '',
1163 ));
1164   install_add_block(array (
1165   'module' => 'views',
1166   'delta' => 'video_featured_last_block',
1167   'theme' => 'filmforge',
1168   'status' => '1',
1169   'weight' => '0',
1170   'region' => 'right',
1171   'custom' => '0',
1172   'throttle' => '0',
1173   'visibility' => '0',
1174   'pages' => 'frontpagevideos',
1175   'title' => 'previous features',
1176 ));
1177   install_add_block(array (
1178   'module' => 'views',
1179   'delta' => 'thisuserscontent',
1180   'theme' => 'filmforge',
1181   'status' => '1',
1182   'weight' => '-8',
1183   'region' => 'right',
1184   'custom' => '0',
1185   'throttle' => '0',
1186   'visibility' => '2',
1187   'pages' => '<?php
1188 $match = FALSE;
1189 $types = array(\'video\' => 1);
1190 if (arg(0) == \'node\' && is_numeric(arg(1))) {
1191   $nid = arg(1);
1192   $node = node_load(array(\'nid\' => $nid));
1193   $type = $node->type;
1194   if (isset($types[$type])) {
1195     $match = TRUE;
1196   }
1197 }
1198 return $match;
1199 ?>',
1200   'title' => '',
1201 ));
1202   install_add_block(array (
1203   'module' => 'views',
1204   'delta' => 'video_tracker_block',
1205   'theme' => 'filmforge',
1206   'status' => '0',
1207   'weight' => '6',
1208   'region' => '',
1209   'custom' => '0',
1210   'throttle' => '0',
1211   'visibility' => '0',
1212   'pages' => '',
1213   'title' => '',
1214 ));
1215   install_add_block(array (
1216   'module' => 'views',
1217   'delta' => 'video_tracker',
1218   'theme' => 'filmforge',
1219   'status' => '0',
1220   'weight' => '0',
1221   'region' => '',
1222   'custom' => '0',
1223   'throttle' => '0',
1224   'visibility' => '0',
1225   'pages' => '',
1226   'title' => '',
1227 ));
1228 
1229   install_add_block(array (
1230   'module' => 'translation',
1231   'delta' => '0',
1232   'theme' => 'filmforge',
1233   'status' => '0',
1234   'weight' => '3',
1235   'region' => '',
1236   'custom' => '0',
1237   'throttle' => '0',
1238   'visibility' => '0',
1239   'pages' => '',
1240   'title' => '',
1241 ));
1242   install_add_block(array (
1243   'module' => 'video',
1244   'delta' => '4',
1245   'theme' => 'filmforge',
1246   'status' => '0',
1247   'weight' => '5',
1248   'region' => '',
1249   'custom' => '0',
1250   'throttle' => '0',
1251   'visibility' => '0',
1252   'pages' => '',
1253   'title' => '',
1254 ));
1255   install_add_block(array (
1256   'module' => 'video',
1257   'delta' => '3',
1258   'theme' => 'filmforge',
1259   'status' => '1',
1260   'weight' => '3',
1261   'region' => 'right',
1262   'custom' => '0',
1263   'throttle' => '0',
1264   'visibility' => '1',
1265   'pages' => 'videos/*
1266 video/*',
1267   'title' => '',
1268 ));
1269   install_add_block(array (
1270   'module' => 'video',
1271   'delta' => '2',
1272   'theme' => 'filmforge',
1273   'status' => '1',
1274   'weight' => '3',
1275   'region' => 'right',
1276   'custom' => '0',
1277   'throttle' => '0',
1278   'visibility' => '1',
1279   'pages' => 'videos/*
1280 video/*',
1281   'title' => '',
1282 ));
1283   install_add_block(array (
1284   'module' => 'video',
1285   'delta' => '1',
1286   'theme' => 'filmforge',
1287   'status' => '1',
1288   'weight' => '3',
1289   'region' => 'right',
1290   'custom' => '0',
1291   'throttle' => '0',
1292   'visibility' => '1',
1293   'pages' => 'videos/*
1294 video/*',
1295   'title' => '',
1296 ));
1297   install_add_block(array (
1298   'module' => 'video',
1299   'delta' => '0',
1300   'theme' => 'filmforge',
1301   'status' => '1',
1302   'weight' => '3',
1303   'region' => 'right',
1304   'custom' => '0',
1305   'throttle' => '0',
1306   'visibility' => '1',
1307   'pages' => 'videos/*
1308 video/*',
1309   'title' => '',
1310 ));
1311   install_add_block(array (
1312   'module' => 'tagadelic',
1313   'delta' => '0',
1314   'theme' => 'filmforge',
1315   'status' => '0',
1316   'weight' => '0',
1317   'region' => '',
1318   'custom' => '0',
1319   'throttle' => '0',
1320   'visibility' => '0',
1321   'pages' => '',
1322   'title' => '',
1323 ));
1324   install_add_block(array (
1325   'module' => 'tagadelic',
1326   'delta' => '2',
1327   'theme' => 'filmforge',
1328   'status' => '1',
1329   'weight' => '4',
1330   'region' => 'left',
1331   'custom' => '0',
1332   'throttle' => '0',
1333   'visibility' => '0',
1334   'pages' => '',
1335   'title' => 'Tag cloud',
1336 ));
1337   install_add_block(array (
1338   'module' => 'tagadelic',
1339   'delta' => '1',
1340   'theme' => 'filmforge',
1341   'status' => '0',
1342   'weight' => '0',
1343   'region' => '',
1344   'custom' => '0',
1345   'throttle' => '0',
1346   'visibility' => '0',
1347   'pages' => '',
1348   'title' => '',
1349 ));
1350   install_add_block(array (
1351   'module' => 'image',
1352   'delta' => '1',
1353   'theme' => 'filmforge',
1354   'status' => '0',
1355   'weight' => '0',
1356   'region' => '',
1357   'custom' => '0',
1358   'throttle' => '0',
1359   'visibility' => '0',
1360   'pages' => '',
1361   'title' => '',
1362 ));
1363   install_add_block(array (
1364   'module' => 'creativecommons_lite',
1365   'delta' => '0',
1366   'theme' => 'filmforge',
1367   'status' => '1',
1368   'weight' => '0',
1369   'region' => 'content_bottom',
1370   'custom' => '0',
1371   'throttle' => '0',
1372   'visibility' => '0',
1373   'pages' => '',
1374   'title' => '',
1375 ));
1376   install_add_block(array (
1377   'module' => 'image',
1378   'delta' => '0',
1379   'theme' => 'filmforge',
1380   'status' => '0',
1381   'weight' => '0',
1382   'region' => '',
1383   'custom' => '0',
1384   'throttle' => '0',
1385   'visibility' => '0',
1386   'pages' => '',
1387   'title' => '',
1388 ));
1389   install_add_block(array (
1390   'module' => 'user',
1391   'delta' => '3',
1392   'theme' => 'filmforge',
1393   'status' => '0',
1394   'weight' => '0',
1395   'region' => '',
1396   'custom' => '0',
1397   'throttle' => '0',
1398   'visibility' => '0',
1399   'pages' => '',
1400   'title' => '',
1401 ));
1402   install_add_block(array (
1403   'module' => 'user',
1404   'delta' => '2',
1405   'theme' => 'filmforge',
1406   'status' => '0',
1407   'weight' => '0',
1408   'region' => '',
1409   'custom' => '0',
1410   'throttle' => '0',
1411   'visibility' => '0',
1412   'pages' => '',
1413   'title' => '',
1414 ));
1415   install_add_block(array (
1416   'module' => 'user',
1417   'delta' => '1',
1418   'theme' => 'filmforge',
1419   'status' => '1',
1420   'weight' => '0',
1421   'region' => 'left',
1422   'custom' => '0',
1423   'throttle' => '0',
1424   'visibility' => '0',
1425   'pages' => '',
1426   'title' => '',
1427 ));
1428   install_add_block(array (
1429   'module' => 'user',
1430   'delta' => '0',
1431   'theme' => 'filmforge',
1432   'status' => '0',
1433   'weight' => '6',
1434   'region' => '',
1435   'custom' => '0',
1436   'throttle' => '0',
1437   'visibility' => '0',
1438   'pages' => '',
1439   'title' => '<none>',
1440 ));
1441   install_add_block(array (
1442   'module' => 'search',
1443   'delta' => '0',
1444   'theme' => 'filmforge',
1445   'status' => '1',
1446   'weight' => '0',
1447   'region' => 'header',
1448   'custom' => '0',
1449   'throttle' => '0',
1450   'visibility' => '0',
1451   'pages' => '',
1452   'title' => '',
1453 ));
1454   install_add_block(array (
1455   'module' => 'profile',
1456   'delta' => '0',
1457   'theme' => 'filmforge',
1458   'status' => '1',
1459   'weight' => '0',
1460   'region' => 'left',
1461   'custom' => '0',
1462   'throttle' => '0',
1463   'visibility' => '0',
1464   'pages' => '',
1465   'title' => '',
1466 ));
1467   install_add_block(array (
1468   'module' => 'node',
1469   'delta' => '0',
1470   'theme' => 'filmforge',
1471   'status' => '0',
1472   'weight' => '0',
1473   'region' => '',
1474   'custom' => '0',
1475   'throttle' => '0',
1476   'visibility' => '0',
1477   'pages' => '',
1478   'title' => '',
1479 ));
1480   install_add_block(array (
1481   'module' => 'menu',
1482   'delta' => '2',
1483   'theme' => 'filmforge',
1484   'status' => '0',
1485   'weight' => '0',
1486   'region' => '',
1487   'custom' => '0',
1488   'throttle' => '0',
1489   'visibility' => '0',
1490   'pages' => '',
1491   'title' => '',
1492 ));
1493   install_add_block(array (
1494   'module' => 'comment',
1495   'delta' => '0',
1496   'theme' => 'filmforge',
1497   'status' => '0',
1498   'weight' => '0',
1499   'region' => '',
1500   'custom' => '0',
1501   'throttle' => '0',
1502   'visibility' => '0',
1503   'pages' => '',
1504   'title' => '',
1505 ));
1506   install_add_block(array (
1507   'module' => 'block',
1508   'delta' => '3',
1509   'theme' => 'filmforge',
1510   'status' => '1',
1511   'weight' => '-8',
1512   'region' => 'content_bottom',
1513   'custom' => '0',
1514   'throttle' => '0',
1515   'visibility' => '1',
1516   'pages' => 'en/user/*
1517 fr/user/*
1518 ko/user/*',
1519   'title' => '',
1520 ));
1521   install_add_block(array (
1522   'module' => 'block',
1523   'delta' => '1',
1524   'theme' => 'filmforge',
1525   'status' => '1',
1526   'weight' => '-9',
1527   'region' => 'left',
1528   'custom' => '0',
1529   'throttle' => '0',
1530   'visibility' => '0',
1531   'pages' => '',
1532   'title' => '',
1533 ));
1534   install_add_block(array (
1535   'module' => 'block',
1536   'delta' => '5',
1537   'theme' => 'filmforge',
1538   'status' => '0',
1539   'weight' => '0',
1540   'region' => '',
1541   'custom' => '0',
1542   'throttle' => '0',
1543   'visibility' => '0',
1544   'pages' => '',
1545   'title' => '',
1546 ));
1547   install_add_block(array (
1548   'module' => 'block',
1549   'delta' => '4',
1550   'theme' => 'filmforge',
1551   'status' => '0',
1552   'weight' => '-10',
1553   'region' => '',
1554   'custom' => '0',
1555   'throttle' => '0',
1556   'visibility' => '0',
1557   'pages' => '',
1558   'title' => '',
1559 ));
1560   install_add_block(array (
1561   'module' => 'aggregator',
1562   'delta' => 'feed-3',
1563   'theme' => 'filmforge',
1564   'status' => '0',
1565   'weight' => '0',
1566   'region' => '',
1567   'custom' => '0',
1568   'throttle' => '0',
1569   'visibility' => '0',
1570   'pages' => '',
1571   'title' => '',
1572 ));
1573   install_add_block(array (
1574   'module' => 'aggregator',
1575   'delta' => 'feed-2',
1576   'theme' => 'filmforge',
1577   'status' => '0',
1578   'weight' => '7',
1579   'region' => '',
1580   'custom' => '0',
1581   'throttle' => '0',
1582   'visibility' => '0',
1583   'pages' => '',
1584   'title' => '',
1585 ));
1586   install_add_block(array (
1587   'module' => 'aggregator',
1588   'delta' => 'feed-1',
1589   'theme' => 'filmforge',
1590   'status' => '1',
1591   'weight' => '8',
1592   'region' => 'right',
1593   'custom' => '0',
1594   'throttle' => '0',
1595   'visibility' => '0',
1596   'pages' => '',
1597   'title' => '',
1598 ));
1599   install_add_block(array (
1600   'module' => 'aggregator',
1601   'delta' => 'category-1',
1602   'theme' => 'filmforge',
1603   'status' => '0',
1604   'weight' => '0',
1605   'region' => '',
1606   'custom' => '0',
1607   'throttle' => '0',
1608   'visibility' => '0',
1609   'pages' => '',
1610   'title' => '',
1611 ));
1612   install_add_block(array (
1613   'module' => 'aggregator',
1614   'delta' => 'category-2',
1615   'theme' => 'filmforge',
1616   'status' => '0',
1617   'weight' => '-10',
1618   'region' => '',
1619   'custom' => '0',
1620   'throttle' => '0',
1621   'visibility' => '1',
1622   'pages' => '<front>',
1623   'title' => 'Latest items from Filmforge',
1624 ));
1625   install_add_block(array (
1626   'module' => 'i18n',
1627   'delta' => '0',
1628   'theme' => 'filmforge',
1629   'status' => '1',
1630   'weight' => '10',
1631   'region' => 'header_top',
1632   'custom' => '0',
1633   'throttle' => '0',
1634   'visibility' => '0',
1635   'pages' => '',
1636   'title' => '<none>',
1637 ));
1638 
1639   /* Menus */
1640   
1641 
1642 /*  install_add_menu_item(array (
1643   'mid' => '2',
1644   'pid' => '0',
1645   'path' => '',
1646   'title' => 'Primary links',
1647   'description' => '',
1648   'weight' => '0',
1649   'type' => '115',
1650   'language' => '',
1651 ));*/
1652   install_add_menu_item(array (
1653   'mid' => '3',
1654   'pid' => '1',
1655   'path' => 'filter/tips',
1656   'title' => 'Compose tips',
1657   'description' => '',
1658   'weight' => '0',
1659   'type' => '20',
1660   'language' => '',
1661 ));
1662   install_add_menu_item(array (
1663   'mid' => '4',
1664   'pid' => '1',
1665   'path' => 'node',
1666   'title' => 'Content',
1667   'description' => '',
1668   'weight' => '0',
1669   'type' => '16',
1670   'language' => '',
1671 ));
1672   install_add_menu_item(array (
1673   'mid' => '5',
1674   'pid' => '1',
1675   'path' => 'admin',
1676   'title' => 'Administer',
1677   'description' => '',
1678   'weight' => '9',
1679   'type' => '22',
1680   'language' => '',
1681 ));
1682   install_add_menu_item(array (
1683   'mid' => '6',
1684   'pid' => '1',
1685   'path' => 'logout',
1686   'title' => 'Log out',
1687   'description' => '',
1688   'weight' => '10',
1689   'type' => '22',
1690   'language' => '',
1691 ));
1692   install_add_menu_item(array (
1693   'mid' => '7',
1694   'pid' => '5',
1695   'path' => 'admin/help',
1696   'title' => 'Help',
1697   'description' => '',
1698   'weight' => '9',
1699   'type' => '22',
1700   'language' => '',
1701 ));
1702   install_add_menu_item(array (
1703   'mid' => '8',
1704   'pid' => '5',
1705   'path' => 'admin/content',
1706   'title' => 'Content management',
1707   'description' => 'Manage your site\'s content.',
1708   'weight' => '-10',
1709   'type' => '22',
1710   'language' => '',
1711 ));
1712   install_add_menu_item(array (
1713   'mid' => '9',
1714   'pid' => '4',
1715   'path' => 'node/add',
1716   'title' => 'Create content',
1717   'description' => '',
1718   'weight' => '1',
1719   'type' => '28',
1720   'language' => '',
1721 ));
1722   install_add_menu_item(array (
1723   'mid' => '10',
1724   'pid' => '5',
1725   'path' => 'admin/settings',
1726   'title' => 'Site configuration',
1727   'description' => 'Adjust basic site configuration options.',
1728   'weight' => '-5',
1729   'type' => '22',
1730   'language' => '',
1731 ));
1732   install_add_menu_item(array (
1733   'mid' => '11',
1734   'pid' => '5',
1735   'path' => 'admin/build',
1736   'title' => 'Site building',
1737   'description' => 'Control how your site looks and feels.',
1738   'weight' => '-10',
1739   'type' => '22',
1740   'language' => '',
1741 ));
1742   install_add_menu_item(array (
1743   'mid' => '12',
1744   'pid' => '5',
1745   'path' => 'admin/logs',
1746   'title' => 'Logs',
1747   'description' => 'View system logs and other status information.',
1748   'weight' => '5',
1749   'type' => '22',
1750   'language' => '',
1751 ));
1752   install_add_menu_item(array (
1753   'mid' => '13',
1754   'pid' => '5',
1755   'path' => 'admin/user',
1756   'title' => 'User management',
1757   'description' => 'Manage your site\'s users, groups and access to site features.',
1758   'weight' => '0',
1759   'type' => '22',
1760   'language' => '',
1761 ));
1762   install_add_menu_item(array (
1763   'mid' => '14',
1764   'pid' => '11',
1765   'path' => 'admin/build/block',
1766   'title' => 'Blocks',
1767   'description' => 'Configure what block content appears in your site\'s sidebars and other regions.',
1768   'weight' => '0',
1769   'type' => '22',
1770   'language' => '',
1771 ));
1772   install_add_menu_item(array (
1773   'mid' => '15',
1774   'pid' => '8',
1775   'path' => 'admin/content/comment',
1776   'title' => 'Comments',
1777   'description' => 'List and edit site comments and the comment moderation queue.',
1778   'weight' => '0',
1779   'type' => '22',
1780   'language' => '',
1781 ));
1782   install_add_menu_item(array (
1783   'mid' => '16',
1784   'pid' => '10',
1785   'path' => 'admin/settings/filters',
1786   'title' => 'Input formats',
1787   'description' => 'Configure how content input by users is filtered, including allowed HTML tags, PHP code tags. Also allows enabling of module-provided filters.',
1788   'weight' => '0',
1789   'type' => '22',
1790   'language' => '',
1791 ));
1792   install_add_menu_item(array (
1793   'mid' => '17',
1794   'pid' => '11',
1795   'path' => 'admin/build/menu',
1796   'title' => 'Menus',
1797   'description' => 'Control your site\'s navigation menu, primary links and secondary links. as well as rename and reorganize menu items.',
1798   'weight' => '0',
1799   'type' => '22',
1800   'language' => '',
1801 ));
1802   install_add_menu_item(array (
1803   'mid' => '18',
1804   'pid' => '8',
1805   'path' => 'admin/content/node',
1806   'title' => 'Content',
1807   'description' => 'View, edit, and delete your site\'s content.',
1808   'weight' => '0',
1809   'type' => '22',
1810   'language' => '',
1811 ));
1812   install_add_menu_item(array (
1813   'mid' => '19',
1814   'pid' => '8',
1815   'path' => 'admin/content/node-settings',
1816   'title' => 'Post settings',
1817   'description' => 'Control posting behavior, such as teaser length, requiring previews before posting, and the number of posts on the front page.',
1818   'weight' => '0',
1819   'type' => '22',
1820   'language' => '',
1821 ));
1822   install_add_menu_item(array (
1823   'mid' => '20',
1824   'pid' => '8',
1825   'path' => 'admin/content/types',
1826   'title' => 'Content types',
1827   'description' => 'Manage posts by content type, including default status, front page promotion, etc.',
1828   'weight' => '0',
1829   'type' => '22',
1830   'language' => '',
1831 ));
1832   install_add_menu_item(array (
1833   'mid' => '21',
1834   'pid' => '9',
1835   'path' => 'node/add/page',
1836   'title' => 'Page',
1837   'description' => '',
1838   'weight' => '0',
1839   'type' => '22',
1840   'language' => '',
1841 ));
1842   install_add_menu_item(array (
1843   'mid' => '22',
1844   'pid' => '9',
1845   'path' => 'node/add/story',
1846   'title' => 'Story',
1847   'description' => '',
1848   'weight' => '0',
1849   'type' => '22',
1850   'language' => '',
1851 ));
1852   install_add_menu_item(array (
1853   'mid' => '23',
1854   'pid' => '10',
1855   'path' => 'admin/settings/admin',
1856   'title' => 'Administration theme',
1857   'description' => 'Settings for how your administrative pages should look.',
1858   'weight' => '0',
1859   'type' => '22',
1860   'language' => '',
1861 ));
1862   install_add_menu_item(array (
1863   'mid' => '24',
1864   'pid' => '11',
1865   'path' => 'admin/build/themes',
1866   'title' => 'Themes',
1867   'description' => 'Change which theme your site uses or allows users to set.',
1868   'weight' => '0',
1869   'type' => '22',
1870   'language' => '',
1871 ));
1872   install_add_menu_item(array (
1873   'mid' => '25',
1874   'pid' => '11',
1875   'path' => 'admin/build/modules',
1876   'title' => 'Modules',
1877   'description' => 'Enable or disable add-on modules for your site.',
1878   'weight' => '0',
1879   'type' => '22',
1880   'language' => '',
1881 ));
1882   install_add_menu_item(array (
1883   'mid' => '26',
1884   'pid' => '10',
1885   'path' => 'admin/settings/site-information',
1886   'title' => 'Site information',
1887   'description' => 'Change basic site information, such as the site name, slogan, e-mail address, mission, front page and more.',
1888   'weight' => '0',
1889   'type' => '22',
1890   'language' => '',
1891 ));
1892   install_add_menu_item(array (
1893   'mid' => '27',
1894   'pid' => '10',
1895   'path' => 'admin/settings/error-reporting',
1896   'title' => 'Error reporting',
1897   'description' => 'Control how Drupal deals with errors including 403/404 errors as well as PHP error reporting.',
1898   'weight' => '0',
1899   'type' => '22',
1900   'language' => '',
1901 ));
1902   install_add_menu_item(array (
1903   'mid' => '28',
1904   'pid' => '10',
1905   'path' => 'admin/settings/performance',
1906   'title' => 'Performance',
1907   'description' => 'Enable or disable page caching for anonymous users, and enable or disable CSS preprocessor.',
1908   'weight' => '0',
1909   'type' => '22',
1910   'language' => '',
1911 ));
1912   install_add_menu_item(array (
1913   'mid' => '29',
1914   'pid' => '10',
1915   'path' => 'admin/settings/file-system',
1916   'title' => 'File system',
1917   'description' => 'Tell Drupal where to store uploaded files and how they are accessed.',
1918   'weight' => '0',
1919   'type' => '22',
1920   'language' => '',
1921 ));
1922   install_add_menu_item(array (
1923   'mid' => '30',
1924   'pid' => '10',
1925   'path' => 'admin/settings/image-toolkit',
1926   'title' => 'Image toolkit',
1927   'description' => 'Choose which image toolkit to use if you have installed optional toolkits.',
1928   'weight' => '0',
1929   'type' => '22',
1930   'language' => '',
1931 ));
1932   install_add_menu_item(array (
1933   'mid' => '31',
1934   'pid' => '8',
1935   'path' => 'admin/content/rss-publishing',
1936   'title' => 'RSS publishing',
1937   'description' => 'Configure the number of items per feed and whether feeds should be titles/teasers/full-text.',
1938   'weight' => '0',
1939   'type' => '22',
1940   'language' => '',
1941 ));
1942   install_add_menu_item(array (
1943   'mid' => '32',
1944   'pid' => '10',
1945   'path' => 'admin/settings/date-time',
1946   'title' => 'Date and time',
1947   'description' => 'Settings for how Drupal displays date and time, as well as the system\'s default timezone.',
1948   'weight' => '0',
1949   'type' => '22',
1950   'language' => '',
1951 ));
1952   install_add_menu_item(array (
1953   'mid' => '33',
1954   'pid' => '10',
1955   'path' => 'admin/settings/site-maintenance',
1956   'title' => 'Site maintenance',
1957   'description' => 'Take the site off-line for maintenance or bring it back online.',
1958   'weight' => '0',
1959   'type' => '22',
1960   'language' => '',
1961 ));
1962   install_add_menu_item(array (
1963   'mid' => '34',
1964   'pid' => '10',
1965   'path' => 'admin/settings/clean-urls',
1966   'title' => 'Clean URLs',
1967   'description' => 'Enable or disable clean URLs for your site.',
1968   'weight' => '0',
1969   'type' => '22',
1970   'language' => '',
1971 ));
1972   install_add_menu_item(array (
1973   'mid' => '35',
1974   'pid' => '12',
1975   'path' => 'admin/logs/status',
1976   'title' => 'Status report',
1977   'description' => 'Get a status report about your site\'s operation and any detected problems.',
1978   'weight' => '10',
1979   'type' => '22',
1980   'language' => '',
1981 ));
1982   install_add_menu_item(array (
1983   'mid' => '36',
1984   'pid' => '8',
1985   'path' => 'admin/content/taxonomy',
1986   'title' => 'Categories',
1987   'description' => 'Create vocabularies and terms to categorize your content.',
1988   'weight' => '0',
1989   'type' => '22',
1990   'language' => '',
1991 ));
1992   install_add_menu_item(array (
1993   'mid' => '37',
1994   'pid' => '13',
1995   'path' => 'admin/user/user',
1996   'title' => 'Users',
1997   'description' => 'List, add, and edit users.',
1998   'weight' => '0',
1999   'type' => '22',
2000   'language' => '',
2001 ));
2002   install_add_menu_item(array (
2003   'mid' => '38',
2004   'pid' => '13',
2005   'path' => 'admin/user/settings',
2006   'title' => 'User settings',
2007   'description' => 'Configure default behavior of users, including registration requirements, e-mails, and user pictures.',
2008   'weight' => '0',
2009   'type' => '22',
2010   'language' => '',
2011 ));
2012   install_add_menu_item(array (
2013   'mid' => '39',
2014   'pid' => '13',
2015   'path' => 'admin/user/access',
2016   'title' => 'Access control',
2017   'description' => 'Determine access to features by selecting permissions for roles.',
2018   'weight' => '0',
2019   'type' => '22',
2020   'language' => '',
2021 ));
2022   install_add_menu_item(array (
2023   'mid' => '40',
2024   'pid' => '13',
2025   'path' => 'admin/user/roles',
2026   'title' => 'Roles',
2027   'description' => 'List, edit, or add user roles.',
2028   'weight' => '0',
2029   'type' => '22',
2030   'language' => '',
2031 ));
2032   install_add_menu_item(array (
2033   'mid' => '41',
2034   'pid' => '13',
2035   'path' => 'admin/user/rules',
2036   'title' => 'Access rules',
2037   'description' => 'List and create rules to disallow usernames, e-mail addresses, and IP addresses.',
2038   'weight' => '0',
2039   'type' => '22',
2040   'language' => '',
2041 ));
2042   install_add_menu_item(array (
2043   'mid' => '42',
2044   'pid' => '12',
2045   'path' => 'admin/logs/watchdog',
2046   'title' => 'Recent log entries',
2047   'description' => 'View events that have recently been logged.',
2048   'weight' => '-1',
2049   'type' => '22',
2050   'language' => '',
2051 ));
2052   install_add_menu_item(array (
2053   'mid' => '43',
2054   'pid' => '12',
2055   'path' => 'admin/logs/page-not-found',
2056   'title' => 'Top \'page not found\' errors',
2057   'description' => 'View \'page not found\' errors (404s).',
2058   'weight' => '0',
2059   'type' => '22',
2060   'language' => '',
2061 ));
2062   install_add_menu_item(array (
2063   'mid' => '44',
2064   'pid' => '12',
2065   'path' => 'admin/logs/access-denied',
2066   'title' => 'Top \'access denied\' errors',
2067   'description' => 'View \'access denied\' errors (403s).',
2068   'weight' => '0',
2069   'type' => '22',
2070   'language' => '',
2071 ));
2072   install_add_menu_item(array (
2073   'mid' => '45',
2074   'pid' => '8',
2075   'path' => 'admin/content/search',
2076   'title' => 'Search content',
2077   'description' => 'Search content by keyword.',
2078   'weight' => '0',
2079   'type' => '22',
2080   'language' => '',
2081 ));
2082   install_add_menu_item(array (
2083   'mid' => '46',
2084   'pid' => '1',
2085   'path' => 'profile',
2086   'title' => 'User list',
2087   'description' => '',
2088   'weight' => '0',
2089   'type' => '20',
2090   'language' => '',
2091 ));
2092   install_add_menu_item(array (
2093   'mid' => '47',
2094   'pid' => '13',
2095   'path' => 'admin/user/profile',
2096   'title' => 'Profiles',
2097   'description' => 'Create customizable fields for your users.',
2098   'weight' => '0',
2099   'type' => '22',
2100   'language' => '',
2101 ));
2102   install_add_menu_item(array (
2103   'mid' => '48',
2104   'pid' => '13',
2105   'path' => 'admin/user/search',
2106   'title' => 'Search users',
2107   'description' => 'Search users by name.',
2108   'weight' => '0',
2109   'type' => '22',
2110   'language' => '',
2111 ));
2112   install_add_menu_item(array (
2113   'mid' => '49',
2114   'pid' => '12',
2115   'path' => 'admin/logs/updates',
2116   'title' => 'Available updates',
2117   'description' => 'Get a status report on your installed modules and available updates.',
2118   'weight' => '10',
2119   'type' => '22',
2120   'language' => '',
2121 ));
2122   install_add_menu_item(array (
2123   'mid' => '50',
2124   'pid' => '11',
2125   'path' => 'admin/build/path',
2126   'title' => 'URL aliases',
2127   'description' => 'Change your site\'s URL paths by aliasing them.',
2128   'weight' => '0',
2129   'type' => '22',
2130   'language' => '',
2131 ));
2132   install_add_menu_item(array (
2133   'mid' => '51',
2134   'pid' => '1',
2135   'path' => 'search',
2136   'title' => 'Search',
2137   'description' => '',
2138   'weight' => '0',
2139   'type' => '20',
2140   'language' => '',
2141 ));
2142   install_add_menu_item(array (
2143   'mid' => '52',
2144   'pid' => '10',
2145   'path' => 'admin/settings/search',
2146   'title' => 'Search settings',
2147   'description' => 'Configure relevance settings for search and other indexing options',
2148   'weight' => '0',
2149   'type' => '22',
2150   'language' => '',
2151 ));
2152   install_add_menu_item(array (
2153   'mid' => '53',
2154   'pid' => '12',
2155   'path' => 'admin/logs/search',
2156   'title' => 'Top search phrases',
2157   'description' => 'View most popular search phrases.',
2158   'weight' => '0',
2159   'type' => '22',
2160   'language' => '',
2161 ));
2162   install_add_menu_item(array (
2163   'mid' => '54',
2164   'pid' => '10',
2165   'path' => 'admin/settings/menu_trim',
2166   'title' => 'Menu trim',
2167   'description' => 'Choose what menus need trimming.',
2168   'weight' => '0',
2169   'type' => '22',
2170   'language' => '',
2171 ));
2172   install_add_menu_item(array (
2173   'mid' => '55',
2174   'pid' => '8',
2175   'path' => 'admin/content/translation',
2176   'title' => 'Translations',
2177   'description' => 'Manage content translations.',
2178   'weight' => '0',
2179   'type' => '22',
2180   'language' => '',
2181 ));
2182   install_add_menu_item(array (
2183   'mid' => '56',
2184   'pid' => '10',
2185   'path' => 'admin/settings/i18n',
2186   'title' => 'Multilingual system',
2187   'description' => 'Configure multilingual content and translation.',
2188   'weight' => '0',
2189   'type' => '22',
2190   'language' => '',
2191 ));
2192   install_add_menu_item(array (
2193   'mid' => '57',
2194   'pid' => '10',
2195   'path' => 'admin/settings/locale',
2196   'title' => 'Localization',
2197   'description' => 'Configure site localization and user interface translation.',
2198   'weight' => '0',
2199   'type' => '22',
2200   'language' => '',
2201 ));
2202   install_add_menu_item(array (
2203   'mid' => '58',
2204   'pid' => '9',
2205   'path' => 'node/add/image',
2206   'title' => 'Image',
2207   'description' => '',
2208   'weight' => '0',
2209   'type' => '22',
2210   'language' => '',
2211 ));
2212   install_add_menu_item(array (
2213   'mid' => '59',
2214   'pid' => '10',
2215   'path' => 'admin/settings/image_attach',
2216   'title' => 'Image attach',
2217   'description' => 'Enable image attach for content',
2218   'weight' => '0',
2219   'type' => '22',
2220   'language' => '',
2221 ));
2222   install_add_menu_item(array (
2223   'mid' => '60',
2224   'pid' => '1',
2225   'path' => 'image',
2226   'title' => 'Image galleries',
2227   'description' => '',
2228   'weight' => '0',
2229   'type' => '20',
2230   'language' => '',
2231 ));
2232   install_add_menu_item(array (
2233   'mid' => '61',
2234   'pid' => '8',
2235   'path' => 'admin/content/image',
2236   'title' => 'Image galleries',
2237   'description' => 'Create and manage image galleries.',
2238   'weight' => '0',
2239   'type' => '22',
2240   'language' => '',
2241 ));
2242   install_add_menu_item(array (
2243   'mid' => '62',
2244   'pid' => '10',
2245   'path' => 'admin/settings/image_gallery',
2246   'title' => 'Image gallery',
2247   'description' => 'Configure appearance of image galleries.',
2248   'weight' => '0',
2249   'type' => '22',
2250   'language' => '',
2251 ));
2252   install_add_menu_item(array (
2253   'mid' => '63',
2254   'pid' => '8',
2255   'path' => 'admin/content/image_import',
2256   'title' => 'Image import',
2257   'description' => 'Import images from the filesystem.',
2258   'weight' => '0',
2259   'type' => '22',
2260   'language' => '',
2261 ));
2262   install_add_menu_item(array (
2263   'mid' => '64',
2264   'pid' => '10',
2265   'path' => 'admin/settings/image_import',
2266   'title' => 'Image import',
2267   'description' => 'Change settings for the Image Import module.',
2268   'weight' => '0',
2269   'type' => '22',
2270   'language' => '',
2271 ));
2272   install_add_menu_item(array (
2273   'mid' => '65',
2274   'pid' => '10',
2275   'path' => 'admin/settings/image',
2276   'title' => 'Image',
2277   'description' => 'Image module settings.',
2278   'weight' => '0',
2279   'type' => '22',
2280   'language' => '',
2281 ));
2282   install_add_menu_item(array (
2283   'mid' => '66',
2284   'pid' => '1',
2285   'path' => 'video',
2286   'title' => 'videos',
2287   'description' => '',
2288   'weight' => '0',
2289   'type' => '20',
2290   'language' => '',
2291 ));
2292   install_add_menu_item(array (
2293   'mid' => '67',
2294   'pid' => '9',
2295   'path' => 'node/add/video',
2296   'title' => 'Video',
2297   'description' => '',
2298   'weight' => '0',
2299   'type' => '22',
2300   'language' => '',
2301 ));
2302   install_add_menu_item(array (
2303   'mid' => '68',
2304   'pid' => '8',
2305   'path' => 'admin/content/video',
2306   'title' => 'Video settings',
2307   'description' => 'Configure different aspects of the video module and its plugins',
2308   'weight' => '0',
2309   'type' => '22',
2310   'language' => '',
2311 ));
2312   install_add_menu_item(array (
2313   'mid' => '69',
2314   'pid' => '68',
2315   'path' => 'admin/content/video/customfields',
2316   'title' => 'Customfields',
2317   'description' => 'Administer video_customfields module settings',
2318   'weight' => '0',
2319   'type' => '22',
2320   'language' => '',
2321 ));
2322   install_add_menu_item(array (
2323   'mid' => '70',
2324   'pid' => '68',
2325   'path' => 'admin/content/video/ffmpeg_helper',
2326   'title' => 'Video ffmpeg Helper',
2327   'description' => 'Administer video_ffmpeg_helper module settings',
2328   'weight' => '0',
2329   'type' => '22',
2330   'language' => '',
2331 ));
2332   install_add_menu_item(array (
2333   'mid' => '71',
2334   'pid' => '68',
2335   'path' => 'admin/content/video/image',
2336   'title' => 'Video image',
2337   'description' => 'Administer video_image module settings',
2338   'weight' => '0',
2339   'type' => '22',
2340   'language' => '',
2341 ));
2342   install_add_menu_item(array (
2343   'mid' => '72',
2344   'pid' => '68',
2345   'path' => 'admin/content/video/multidownload',
2346   'title' => 'Multidownload',
2347   'description' => 'Administer video_multidownload module settings',
2348   'weight' => '0',
2349   'type' => '22',
2350   'language' => '',
2351 ));
2352   install_add_menu_item(array (
2353   'mid' => '73',
2354   'pid' => '68',
2355   'path' => 'admin/content/video/upload',
2356   'title' => 'Upload',
2357   'description' => 'Administer video_upload module settings',
2358   'weight' => '0',
2359   'type' => '22',
2360   'language' => '',
2361 ));
2362 //  install_add_menu_item(array (
2363 //  'mid' => '74',
2364 //  'pid' => '11',
2365 //  'path' => 'admin/build/contact',
2366 //  'title' => 'Contact form',
2367 //  'description' => 'Create a system contact form and set up categories for the form to use.',
2368 //  'weight' => '0',
2369 //  'type' => '22',
2370 //  'language' => '',
2371 //));
2372   install_add_menu_item(array (
2373   'mid' => '75',
2374   'pid' => '1',
2375   'path' => 'contact',
2376   'title' => 'Contact',
2377   'description' => '',
2378   'weight' => '0',
2379   'type' => '20',
2380   'language' => '',
2381 ));
2382   install_add_menu_item(array (
2383   'mid' => '76',
2384   'pid' => '8',
2385   'path' => 'admin/content/video_cck',
2386   'title' => 'Video CCK configuration',
2387   'description' => 'Configure Video CCK: Allow content types to use various 3rd party providers, enter API keys, etc.',
2388   'weight' => '0',
2389   'type' => '22',
2390   'language' => '',
2391 ));
2392   install_add_menu_item(array (
2393   'mid' => '77',
2394   'pid' => '11',
2395   'path' => 'admin/build/views',
2396   'title' => 'Views',
2397   'description' => 'Views are customized lists of content on your system; they are highly configurable and give you control over how lists of content are presented.',
2398   'weight' => '0',
2399   'type' => '22',
2400   'language' => '',
2401 ));
2402   install_add_menu_item(array (
2403   'mid' => '78',
2404   'pid' => '1',
2405   'path' => 'directory',
2406   'title' => 'directory',
2407   'description' => '',
2408   'weight' => '0',
2409   'type' => '22',
2410   'language' => '',
2411 ));
2412   install_add_menu_item(array (
2413   'mid' => '79',
2414   'pid' => '1',
2415   'path' => 'tracker',
2416   'title' => 'Recent posts',
2417   'description' => '',
2418   'weight' => '0',
2419   'type' => '22',
2420   'language' => '',
2421 ));
2422   install_add_menu_item(array (
2423   'mid' => '80',
2424   'pid' => '9',
2425   'path' => 'node/add/test',
2426   'title' => 'Test content type',
2427   'description' => '',
2428   'weight' => '0',
2429   'type' => '22',
2430   'language' => '',
2431 ));
2432   install_add_menu_item(array (
2433   'mid' => '81',
2434   'pid' => '10',
2435   'path' => 'admin/settings/img_assist',
2436   'title' => 'Image assist',
2437   'description' => 'Change settings for the Image assist module.',
2438   'weight' => '0',
2439   'type' => '22',
2440   'language' => '',
2441 ));
2442   install_add_menu_item(array (
2443   'mid' => '82',
2444   'pid' => '10',
2445   'path' => 'admin/settings/pathauto',
2446   'title' => 'Pathauto',
2447   'description' => 'Configure how pathauto generates clean URLs for your content.',
2448   'weight' => '0',
2449   'type' => '22',
2450   'language' => '',
2451 ));
2452   install_add_menu_item(array (
2453   'mid' => '83',
2454   'pid' => '2',
2455   'path' => 'recent_changes',
2456   'title' => 'Recent changes',
2457   'description' => '',
2458   'weight' => '0',
2459   'type' => '48',
2460   'language' => '',
2461 ));
2462   install_add_menu_item(array (
2463   'mid' => '84',
2464   'pid' => '10',
2465   'path' => 'admin/settings/wikitools',
2466   'title' => 'Wikitools',
2467   'description' => 'Settings for wiki-like behaviour.',
2468   'weight' => '0',
2469   'type' => '22',
2470   'language' => '',
2471 ));
2472   install_add_menu_item(array (
2473   'mid' => '85',
2474   'pid' => '10',
2475   'path' => 'admin/settings/votingapi',
2476   'title' => 'Voting API',
2477   'description' => 'Global settings for the Voting API.',
2478   'weight' => '0',
2479   'type' => '22',
2480   'language' => '',
2481 ));
2482   install_add_menu_item(array (
2483   'mid' => '86',
2484   'pid' => '1',
2485   'path' => 'videos/recent',
2486   'title' => 'Recent CCK videos',
2487   'description' => '',
2488   'weight' => '0',
2489   'type' => '22',
2490   'language' => '',
2491 ));
2492   install_add_menu_item(array (
2493   'mid' => '87',
2494   'pid' => '2',
2495   'path' => 'videos/tracker',
2496   'title' => 'new videos',
2497   'description' => 'see a list of recent videos',
2498   'weight' => '2',
2499   'type' => '54',
2500   'language' => '',
2501 ));
2502   install_add_menu_item(array (
2503   'mid' => '88',
2504   'pid' => '8',
2505   'path' => 'admin/content/aggregator',
2506   'title' => 'News aggregator',
2507   'description' => 'Configure which content your site aggregates from other sites, how often it polls them, and how they\'re categorized.',
2508   'weight' => '0',
2509   'type' => '22',
2510   'language' => '',
2511 ));
2512   install_add_menu_item(array (
2513   'mid' => '89',
2514   'pid' => '1',
2515   'path' => 'aggregator',
2516   'title' => 'News aggregator',
2517   'description' => '',
2518   'weight' => '3',
2519   'type' => '54',
2520   'language' => '',
2521 ));
2522   install_add_menu_item(array (
2523   'mid' => '90',
2524   'pid' => '89',
2525   'path' => 'aggregator/sources',
2526   'title' => 'Sources',
2527   'description' => '',
2528   'weight' => '0',
2529   'type' => '22',
2530   'language' => '',
2531 ));
2532   install_add_menu_item(array (
2533   'mid' => '91',
2534   'pid' => '89',
2535   'path' => 'aggregator/categories',
2536   'title' => 'Categories',
2537   'description' => '',
2538   'weight' => '0',
2539   'type' => '28',
2540   'language' => '',
2541 ));
2542   install_add_menu_item(array (
2543   'mid' => '92',
2544   'pid' => '91',
2545   'path' => 'aggregator/categories/1',
2546   'title' => 'video',
2547   'description' => '',
2548   'weight' => '0',
2549   'type' => '22',
2550   'language' => '',
2551 ));
2552   install_add_menu_item(array (
2553   'mid' => '93',
2554   'pid' => '91',
2555   'path' => 'aggregator/categories/2',
2556   'title' => 'filmforge',
2557   'description' => '',
2558   'weight' => '0',
2559   'type' => '22',
2560   'language' => '',
2561 ));
2562   install_add_menu_item(array (
2563   'mid' => '94',
2564   'pid' => '9',
2565   'path' => 'node/add/audio',
2566   'title' => 'Audio',
2567   'description' => '',
2568   'weight' => '0',
2569   'type' => '22',
2570   'language' => '',
2571 ));
2572   install_add_menu_item(array (
2573   'mid' => '95',
2574   'pid' => '113',
2575   'path' => 'audio',
2576   'title' => 'Recent audio',
2577   'description' => '',
2578   'weight' => '6',
2579   'type' => '54',
2580   'language' => '',
2581 ));
2582   install_add_menu_item(array (
2583   'mid' => '96',
2584   'pid' => '10',
2585   'path' => 'admin/settings/audio',
2586   'title' => 'Audio settings',
2587   'description' => 'Change settings for the audio module.',
2588   'weight' => '0',
2589   'type' => '22',
2590   'language' => '',
2591 ));
2592   install_add_menu_item(array (
2593   'mid' => '97',
2594   'pid' => '95',
2595   'path' => 'audio/by',
2596   'title' => 'Browse by...',
2597   'description' => '',
2598   'weight' => '0',
2599   'type' => '22',
2600   'language' => '',
2601 ));
2602   install_add_menu_item(array (
2603   'mid' => '98',
2604   'pid' => '8',
2605   'path' => 'admin/content/audio_import',
2606   'title' => 'Audio import',
2607   'description' => 'Import audio from the filesystem.',
2608   'weight' => '0',
2609   'type' => '22',
2610   'language' => '',
2611 ));
2612   install_add_menu_item(array (
2613   'mid' => '99',
2614   'pid' => '10',
2615   'path' => 'admin/settings/audio_import',
2616   'title' => 'Audio import settings',
2617   'description' => 'Change settings for the Audio Import module.',
2618   'weight' => '0',
2619   'type' => '22',
2620   'language' => '',
2621 ));
2622   install_add_menu_item(array (
2623   'mid' => '100',
2624   'pid' => '10',
2625   'path' => 'admin/settings/uploads',
2626   'title' => 'File uploads',
2627   'description' => 'Control how files may be attached to content.',
2628   'weight' => '0',
2629   'type' => '22',
2630   'language' => '',
2631 ));
2632   install_add_menu_item(array (
2633   'mid' => '101',
2634   'pid' => '9',
2635   'path' => 'node/add/media-field-test',
2636   'title' => 'MediaFieldTest',
2637   'description' => '',
2638   'weight' => '0',
2639   'type' => '22',
2640   'language' => '',
2641 ));
2642   install_add_menu_item(array (
2643   'mid' => '102',
2644   'pid' => '10',
2645   'path' => 'admin/settings/throttle',
2646   'title' => 'Réguler',
2647   'description' => 'Contrôle comment votre site réduit automatiquement la complexité du contenu pour résister à de fortes charges.',
2648   'weight' => '0',
2649   'type' => '22',
2650   'language' => '',
2651 ));
2652   install_add_menu_item(array (
2653   'mid' => '103',
2654   'pid' => '10',
2655   'path' => 'admin/settings/flashvideo',
2656   'title' => 'FlashVideo Settings',
2657   'description' => 'Administer the FlashVideo module.',
2658   'weight' => '0',
2659   'type' => '22',
2660   'language' => '',
2661 ));
2662   install_add_menu_item(array (
2663   'mid' => '104',
2664   'pid' => '9',
2665   'path' => 'node/add/test-with-flash-video',
2666   'title' => 'Test with FalshVideo',
2667   'description' => '',
2668   'weight' => '0',
2669   'type' => '22',
2670   'language' => '',
2671 ));
2672   install_add_menu_item(array (
2673   'mid' => '105',
2674   'pid' => '9',
2675   'path' => 'node/add/test-flash-video',
2676   'title' => 'Test with FalshVideo',
2677   'description' => '',
2678   'weight' => '0',
2679   'type' => '22',
2680   'language' => '',
2681 ));
2682   install_add_menu_item(array (
2683   'mid' => '106',
2684   'pid' => '11',
2685   'path' => 'admin/build/panels',
2686   'title' => 'Panels',
2687   'description' => 'Create pages on your site that are 2 or 3 columns',
2688   'weight' => '0',
2689   'type' => '22',
2690   'language' => '',
2691 ));
2692   install_add_menu_item(array (
2693   'mid' => '107',
2694   'pid' => '10',
2695   'path' => 'admin/settings/nodecloud',
2696   'title' => 'Node Cloud',
2697   'description' => 'Set the site wide settings for Node Cloud',
2698   'weight' => '0',
2699   'type' => '22',
2700   'language' => '',
2701 ));
2702   install_add_menu_item(array (
2703   'mid' => '108',
2704   'pid' => '10',
2705   'path' => 'admin/settings/tagadelic',
2706   'title' => 'Tagadelic configuration',
2707   'description' => 'Configure the tag clouds. Set the order, the number of tags, and the depth of the clouds.',
2708   'weight' => '0',
2709   'type' => '22',
2710   'language' => '',
2711 ));
2712   install_add_menu_item(array (
2713   'mid' => '109',
2714   'pid' => '1',
2715   'path' => 'tagadelic',
2716   'title' => 'Tags',
2717   'description' => '',
2718   'weight' => '0',
2719   'type' => '20',
2720   'language' => '',
2721 ));
2722   install_add_menu_item(array (
2723   'mid' => '110',
2724   'pid' => '1',
2725   'path' => 'devel/queries',
2726   'title' => 'Database queries',
2727   'description' => '',
2728   'weight' => '0',
2729   'type' => '22',
2730   'language' => '',
2731 ));
2732   install_add_menu_item(array (
2733   'mid' => '111',
2734   'pid' => '10',
2735   'path' => 'admin/settings/devel',
2736   'title' => 'Devel',
2737   'description' => '',
2738   'weight' => '0',
2739   'type' => '22',
2740   'language' => '',
2741 ));
2742   install_add_menu_item(array (
2743   'mid' => '112',
2744   'pid' => '87',
2745   'path' => 'videos/tracker/last',
2746   'title' => 'Recent videos',
2747   'description' => '',
2748   'weight' => '0',
2749   'type' => '22',
2750   'language' => '',
2751 ));
2752   install_add_menu_item(array (
2753   'mid' => '113',
2754   'pid' => '1',
2755   'path' => 'videos/featured/last',
2756   'title' => 'Recent videos',
2757   'description' => '',
2758   'weight' => '0',
2759   'type' => '22',
2760   'language' => '',
2761 ));
2762   install_add_menu_item(array (
2763   'mid' => '114',
2764   'pid' => '113',
2765   'path' => 'videos/featured/last/media_rss',
2766   'title' => 'Recent videos',
2767   'description' => '',
2768   'weight' => '0',
2769   'type' => '22',
2770   'language' => '',
2771 ));
2772   install_add_menu_item(array (
2773   'mid' => '115',
2774   'pid' => '113',
2775   'path' => 'videos/featured/last/rss',
2776   'title' => 'Recent videos',
2777   'description' => '',
2778   'weight' => '0',
2779   'type' => '22',
2780   'language' => '',
2781 ));
2782   install_add_menu_item(array (
2783   'mid' => '116',
2784   'pid' => '1',
2785   'path' => 'videos/featured/inpanels',
2786   'title' => 'Recent videos',
2787   'description' => '',
2788   'weight' => '0',
2789   'type' => '22',
2790   'language' => '',
2791 ));
2792   install_add_menu_item(array (
2793   'mid' => '117',
2794   'pid' => '1',
2795   'path' => 'frontpagevideos',
2796   'title' => 'Recent videos',
2797   'description' => '',
2798   'weight' => '0',
2799   'type' => '48',
2800   'language' => '',
2801 ));
2802   install_add_menu_item(array (
2803   'mid' => '118',
2804   'pid' => '1',
2805   'path' => 'featuredvideo',
2806   'title' => '',
2807   'description' => '',
2808   'weight' => '0',
2809   'type' => '22',
2810   'language' => '',
2811 ));
2812   install_add_menu_item(array (
2813   'mid' => '119',
2814   'pid' => '2',
2815   'path' => 'about',
2816   'title' => 'about',
2817   'description' => 'about FilmForge',
2818   'weight' => '0',
2819   'type' => '118',
2820   'language' => '',
2821 ));
2822   install_add_menu_item(array (
2823   'mid' => '120',
2824   'pid' => '1',
2825   'path' => 'latest_featured_video',
2826   'title' => '',
2827   'description' => '',
2828   'weight' => '0',
2829   'type' => '48',
2830   'language' => '',
2831 ));
2832   install_add_menu_item(array (
2833   'mid' => '121',
2834   'pid' => '2',
2835   'path' => 'publish',
2836   'title' => 'publish',
2837   'description' => 'publish your video',
2838   'weight' => '-10',
2839   'type' => '118',
2840   'language' => '',
2841 ));
2842   install_add_menu_item(array (
2843   'mid' => '122',
2844   'pid' => '2',
2845   'path' => 'help',
2846   'title' => 'Help',
2847   'description' => 'FilmForge help page',
2848   'weight' => '-5',
2849   'type' => '118',
2850   'language' => '',
2851 ));
2852   install_add_menu_item(array (
2853   'mid' => '123',
2854   'pid' => '2',
2855   'path' => 'contact',
2856   'title' => 'Contact',
2857   'description' => 'Contact the FilmForge team',
2858   'weight' => '1',
2859   'type' => '118',
2860   'language' => '',
2861 ));
2862   install_add_menu_item(array (
2863   'mid' => '124',
2864   'pid' => '2',
2865   'path' => 'search',
2866   'title' => 'Search',
2867   'description' => 'Search this site',
2868   'weight' => '-9',
2869   'type' => '118',
2870   'language' => '',
2871 ));
2872 
2873   /* CONTENT */
2874   $node = new stdClass();
2875   $node->title = "Help";
2876   $node->body = "PLEASE COMPLETE. This page is for helpful suggestions and answers to Frequently Asked Questions.";
2877   $node->status = 1;
2878   $node->revision = 1;
2879   node_save($node);
2880   path_set_alias('node/'.$node->nid, 'help');
2881 
2882   $node = new stdClass();
2883   $node->title = "About";
2884   $node->body = "PLEASE COMPLETE.";
2885   $node->status = 1;
2886   $node->revision = 1;
2887   node_save($node);
2888   path_set_alias('node/'.$node->nid, 'about');
2889   
2890   
2891 }
2892 
2893 function install_add_block($block) {
2894   db_query("INSERT INTO {blocks} (module, delta, theme, status, weight, region, visibility, pages, custom, throttle, title) VALUES ('%s', '%s', '%s', %d, %d, '%s', %d, '%s', %d, %d, '%s')", $block['module'], $block['delta'], $block['theme'], $block['status'], $block['weight'], $block['region'], $block['visibility'], $block['pages'], $block['custom'], $block['throttle'], $block['title']);
2895 }
2896 
2897 function install_add_menu_item($item) {
2898   menu_save_item($item);
2899 }
filmforge.profile.4.php

FilmForge/DrupalProfile (last edited 2011-05-30 15:15:58 by TheAnarcat)