title: Defining a global variable inside module in Drupal
body: <p>I am trying to save a global variable in my module and access it from another function. I don't want to store it in $_SESSION because I need this variable application wide. Following is the code what I am trying but it simply doesn't work.</p>
  
  <pre><code>  function popmeup_menu() {
      $items['example/feed'] = array(
      'title' =&gt; 'Example RSS feed',
       'page callback' =&gt; 'popmeup_page',
       'access arguments' =&gt; array('access content'),
       'type' =&gt; MENU_CALLBACK
      );
      return $items;
    }
  
      function popmeup_page() {
        print variable_get($xmlt, "");
      }
  
      function popmeup_comment_insert($comment) {
        variable_set($xmlt,"xmltoreturn");
      }
  </code></pre>