You are here

function bueditor_eval in BUEditor 7

Evaluate PHP code.

1 call to bueditor_eval()
bueditor_processed_buttons in ./bueditor.inc
Processed buttons. Evaluate php code for php buttons and translate titles prefixed with t:.

File

./bueditor.inc, line 274
Implements commonly used functions for bueditor.

Code

function bueditor_eval($code) {
  ob_start();
  print eval('?><?php ' . $code . ' ?>');
  $output = ob_get_contents();
  ob_end_clean();
  return $output;
}