You are here

function finder_ui::init in Finder 7.2

Fake constructor -- this is easier to deal with than the real constructor because we are retaining PHP4 compatibility, which would require all child classes to implement their own constructor.

Overrides ctools_export_ui::init

File

modules/finder_ui/plugins/export_ui/finder_ui.class.php, line 15
Contains the CTools Export UI integration code.

Class

finder_ui
CTools Export UI class handler for Finder UI.

Code

function init($plugin) {
  parent::init($plugin);
  finder_inc('finder', 'finder_ui');
  ctools_include('ajax');
  drupal_add_css(drupal_get_path('module', 'finder_ui') . '/finder_ui.css');

  // These must be added up front because of a situation where all dropbuttons
  // start as ordinary buttons but then get ajaxed to dropbuttons.
  ctools_add_js('dropbutton');
  ctools_add_css('dropbutton');
  $modal_options = array(
    'opacity' => 0.7,
    'background' => '#000',
  );
  drupal_add_js(array(
    'finder-modal-style' => array(
      'modalSize' => array(
        'type' => 'fixed',
        'width' => 1024,
        'height' => 576,
        'contentRight' => 0,
      ),
      'modalTheme' => 'FinderUIModal',
      'modalOptions' => $modal_options,
      'closeImage' => '',
    ),
  ), 'setting');
  drupal_add_js(drupal_get_path('module', 'finder_ui') . '/finder_ui.js');
}