[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/yui_editor/plugins/ -> table.inc (source)

   1  <?php
   2  // $Id: table.inc,v 1.1.2.3 2008/11/21 22:54:27 jeffcd Exp $
   3  
   4  /**
   5   * @file
   6   * Table plugin for the YUI Editor.
   7   */
   8  
   9  function yui_editor_table_settings(&$form, &$profile) {
  10    $form['plugins']['table'] = array(
  11      '#type' => 'checkbox',
  12      '#title' => t('Table button'),
  13      '#default_value' => $profile['table'],
  14      '#description' => t('Add a button for creating tables. Note: This feature has only been tested in Firefox.'),
  15    );
  16  }
  17  
  18  function yui_editor_table_render(&$profile) {
  19    if (isset($profile['table']) && $profile['table'] == 1) {
  20      drupal_add_js(drupal_get_path('module', 'yui_editor') .'/plugins/table.js', 'module', 'footer');
  21      drupal_add_css(drupal_get_path('module', 'yui_editor') .'/plugins/table.css', 'module');
  22    }
  23  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7