You are here

function arrange_fields_init in Arrange Fields 6

Same name and namespace in other branches
  1. 7 arrange_fields.module \arrange_fields_init()

hook_init()

The init function is executed at the beginning of every page load. Here, I'm just trying to see if the webform module has been installed, and if so, I set a global variable I can access later.

File

./arrange_fields.module, line 1021

Code

function arrange_fields_init() {

  // is webform installed?
  if (function_exists("webform_menu")) {
    $GLOBALS["arrange_fields_webform_installed"] = TRUE;
  }
}