You are here

function bueditor_isimage in BUEditor 5

Same name and namespace in other branches
  1. 6 bueditor.admin.inc \bueditor_isimage()

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

2 calls to bueditor_isimage()
bueditor_form_button in ./bueditor.module
Template form for buttons
bueditor_icons in ./bueditor.module
Icons in "icons" folder.

File

./bueditor.module, line 634

Code

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