/[drupal]/contributions/modules/video/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module
ViewVC logotype

Diff of /contributions/modules/video/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module

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

revision 1.8.2.1, Wed May 27 01:48:28 2009 UTC revision 1.8.2.2, Mon Jun 1 01:10:32 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  //$Id$  //$Id: video_ffmpeg_helper.module,v 1.8.2.1 2009/05/27 01:48:28 heshanmw Exp $
3  /**  /**
4   * @file   * @file
5   * Provide some api for use ffmpeg. Simplify video nodes creation.   * Provide some api for use ffmpeg. Simplify video nodes creation.
# Line 52  function video_ffmpeg_helper_help($path, Line 52  function video_ffmpeg_helper_help($path,
52   */   */
53  function video_ffmpeg_helper_menu() {  function video_ffmpeg_helper_menu() {
54    $items = array();    $items = array();
 /* TODO  
    Non menu code that was placed in hook_menu under the '!$may_cache' block  
    so that it could be run during initialization, should now be moved to hook_init.  
    Previously we called hook_init twice, once early in the bootstrap process, second  
    just after the bootstrap has finished. The first instance is now called boot  
    instead of init.  
   
    In Drupal 6, there are now two hooks that can be used by modules to execute code  
    at the beginning of a page request. hook_boot() replaces hook_boot() in Drupal 5  
    and runs on each page request, even for cached pages. hook_boot() now only runs  
    for non-cached pages and thus can be used for code that was previously placed in  
    hook_menu() with $may_cache = FALSE:  
   
    Dynamic menu items under a '!$may_cache' block can often be simplified  
    to remove references to arg(n) and use of '%<function-name>' to check  
    conditions. See http://drupal.org/node/103114.  
   
    The title and description arguments should not have strings wrapped in t(),  
    because translation of these happen in a later stage in the menu system.  
 */  
     $may_cache=true;  
   if ($may_cache) {  
55        $items['admin/settings/video/ffmpeg_helper'] = array(        $items['admin/settings/video/ffmpeg_helper'] = array(
56        'title' => 'Video ffmpeg Helper',        'title' => 'Video ffmpeg Helper',
57        'description' => 'Administer video_ffmpeg_helper module settings',        'description' => 'Administer video_ffmpeg_helper module settings',
# Line 82  function video_ffmpeg_helper_menu() { Line 60  function video_ffmpeg_helper_menu() {
60        'access arguments' => array('administer site configuration'),        'access arguments' => array('administer site configuration'),
61        'type' => MENU_NORMAL_ITEM,        'type' => MENU_NORMAL_ITEM,
62      );      );
63    }  
64    return $items;    return $items;
65  }  }
66    
# Line 282  function video_ffmpeg_helper_nodeapi(&$n Line 260  function video_ffmpeg_helper_nodeapi(&$n
260          }          }
261          break;          break;
262    
263        case 'submit':        case 'presve':
264          break;          break;
265    
266        case 'update':        case 'update':

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.2

  ViewVC Help
Powered by ViewVC 1.1.2