You are here

function bueditor_icons in BUEditor 6

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

Load icons in the path

1 call to bueditor_icons()
bueditor_editor_form in ./bueditor.admin.inc
Editor form.

File

./bueditor.admin.inc, line 454

Code

function bueditor_icons($path) {
  $icons = array();
  if ($path && ($handle = opendir($path))) {
    while (($file = readdir($handle)) !== FALSE) {
      if (bueditor_isimage($file)) {
        $icons[$file] = $file;
      }
    }
    closedir($handle);
  }
  return $icons;
}