You are here

function example_drupal_eval in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_drupal_eval()

File

coder_upgrade/tests/old/samples/example.module, line 190

Code

function example_drupal_eval() {

  // drupal_eval() -- Change the next line but leave this alone
  drupal_eval('<?php print "Hello World"; ? >');
  $text = drupal_eval('<?php print "Hello World"; ? >');
  if ($text = drupal_eval('<?php print "Hello World"; ? >')) {

    //
  }
  print_r(drupal_eval('<?php print "Hello World"; ? >'));

  // drupal_eval() -- try this for nesting complexity
  echo print_r(drupal_eval('<?php print "Hello World"; ? >'), 1);
}