Module variable start

Start using the Module variable function named module_variable_start. Your module supplies the name of your module, the lower case machine name, not a decorative title. In this example we are adding variables to a module named Predict the future. The internal name, the name used for the first part of the name for the .info, is predict_future. The following code creates a Module variable object named $mv from class module_variable. The only information needed is the name of your module.
$mv = module_variable_start('predict_future');
The following code displays the created object.
var_dump($mv);
Here is the result. You can see the module name is stored in the object along with a place for the variables.
object(module_variable)#81 (2) {
  ["module_name":"module_variable":private]=>
  string(14) "predict_future"
  ["variables":"module_variable":private]=>
  array(0) {
  }
}