You are here

function bueditor_icons in BUEditor 5

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

Icons in "icons" folder.

1 call to bueditor_icons()
bueditor_form_button in ./bueditor.module
Template form for buttons

File

./bueditor.module, line 419

Code

function bueditor_icons() {
  $icons = array();
  $dir = drupal_get_path('module', 'bueditor') . '/icons';
  if ($handle = @opendir($dir)) {
    while (($file = readdir($handle)) !== FALSE) {
      if (bueditor_isimage($file)) {
        $icons[$file] = $file;
      }
    }
    closedir($handle);
  }
  return $icons;
}