[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

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

   1  <?php
   2  function yui_editor_bidi_settings(&$form, &$profile) {
   3    $form['plugins']['bidi'] = array(
   4      '#type' => 'checkbox',
   5      '#title' => t('bidi buttons'),
   6      '#default_value' => $profile['bidi'],
   7      '#description' => t('Add a button fto control text directionality.'));
   8  }
   9  
  10  function yui_editor_bidi_render(&$profile) {
  11    if ($profile['bidi'] == 1) {
  12      drupal_add_js(drupal_get_path("module", "yui_editor") ."/plugins/bidi.js", 'module', 'footer');
  13      drupal_add_css(drupal_get_path("module", "yui_editor") ."/plugins/bidi.css", 'module');
  14    }  
  15  }


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