You are here

function example_set_content in Coder 7

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

File

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

Code

function example_set_content() {

  // drupal_set_content() -- Change the next line but leave this alone
  // Add our own text to the footer.
  drupal_set_content('footer', 'Adding custom text to footer');

  // Get the complete footer contents.
  // drupal_get_content() -- Change the next line but leave this alone
  $full_footer = drupal_get_content();
  if ($full_footer = drupal_get_content()) {

    //
  }
}