You are here

function video_filter_dashboard_page in Video Filter 6.3

Same name and namespace in other branches
  1. 7.3 video_filter.module \video_filter_dashboard_page()

Creates the dashboard.

1 string reference to 'video_filter_dashboard_page'
video_filter_menu in ./video_filter.module
Implements hook_menu().

File

./video_filter.module, line 67

Code

function video_filter_dashboard_page($editor) {
  module_invoke('admin_menu', 'suppress');

  // Add CSS.
  drupal_add_css(drupal_get_path('module', 'video_filter') . '/video_filter.css');
  switch ($editor) {
    case 'wysiwyg_tinymce':

      // Add JavaScript.
      drupal_add_js(wysiwyg_get_path('tinymce') . '/jscripts/tiny_mce/tiny_mce_popup.js');
      drupal_add_js(drupal_get_path('module', 'video_filter') . '/editors/tinymce/video_filter.js');
      break;
    case 'ckeditor':
    case 'wysiwyg_ckeditor':

      // Add JavaScript.
      drupal_add_js(drupal_get_path('module', 'video_filter') . '/editors/ckeditor/video_filter_dialog.js');
      break;
    case 'fckeditor':
    case 'wysiwyg_fckeditor':

      // Add JavaScript.
      drupal_add_js(drupal_get_path('module', 'video_filter') . '/editors/fckeditor/video_filter/video_filter_dialog.js');
      break;
  }
  print theme('video_filter_dashboard', drupal_get_form('_video_filter_form'));
  exit;
}