You are here

function bueditor_isimage in BUEditor 6

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_isimage()

check if the icon is image.(just a string check, not a file check)

2 calls to bueditor_isimage()
bueditor_button_form in ./bueditor.admin.inc
Template form for buttons
bueditor_icons in ./bueditor.admin.inc
Load icons in the path

File

./bueditor.admin.inc, line 501

Code

function bueditor_isimage($text) {
  return preg_match('/\\.(png|gif|jpg)$/i', $text);
}