You are here

function ckeditor_swf_players in CKEditor SWF - Enhanced Flash embedding plugin 6.2

Same name and namespace in other branches
  1. 7 ckeditor_swf.module \ckeditor_swf_players()
1 call to ckeditor_swf_players()
ckeditor_swf_form_post_render in ./ckeditor_swf.module
1 string reference to 'ckeditor_swf_players'
ckeditor_swf_admin_form_submit in ./ckeditor_swf.admin.inc

File

./ckeditor_swf.module, line 459
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_swf_players() {
  $players = variable_get('ckeditor_swf_players', array());
  foreach ($players as $mime => $player) {
    $path = $player['path'];
    if (file_exists($path)) {
      $players[$mime]['path'] = base_path() . $path;
    }
    else {
      unset($players[$mime]);
    }
  }
  return $players;
}