You are here

function bueditor_icons in BUEditor 7

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_icons()
  2. 6.2 admin/bueditor.admin.inc \bueditor_icons()
  3. 6 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 930

Code

function bueditor_icons($path) {
  $icons = file_scan_directory($path, '/\\.(png|gif|jpg)$/', array(
    'recurse' => FALSE,
    'key' => 'filename',
  ));
  array_walk($icons, function (&$value) {
    $value = 1;
  });
  return $icons;
}