You are here

function bueditor_icons in BUEditor 6.2

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_icons()
  2. 6 bueditor.admin.inc \bueditor_icons()
  3. 7 admin/bueditor.admin.inc \bueditor_icons()

Load icons in the path

2 calls to bueditor_icons()
bueditor_editor_theme in admin/bueditor.admin.inc
Editor form theming.
bueditor_varexport_editor in admin/bueditor.admin.inc
Generate an importable editor string including icon and library files.

File

admin/bueditor.admin.inc, line 827

Code

function bueditor_icons($path) {
  $icons = file_scan_directory($path, '\\.(png|gif|jpg)$', array(
    '.',
    '..',
    'CVS',
  ), 0, 0, 'basename');
  array_walk($icons, create_function('&$value', '$value = 1;'));
  return $icons;
}