[development] How Can I Set ang Get Variables
    AjK 
    drupal at f2s.com
       
    Thu Nov  9 11:45:17 UTC 2006
    
    
  
http://uk.php.net/manual/en/function.define.php
define("MYVARNAME", 'some name');
define("MYVARDEFAULT", 0);
and then everywhere else.....
$x = variable_get(MYVARNAME, MYVARDEFAULT);
  Hello,
  I need to know how can I Set and Get variables in Variable Table...
  As I don't want to use Hard Coded names, because I have to use It more
than 1 time in my module.
  I want to use variables to be Set In variable table once and then to Get
them like...
  DataBase Server Name
  DataBase Name
  Directories Name etc..
  Please tell me a way to solve this...
  Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20061109/5694ff0f/attachment.htm 
    
    
More information about the development
mailing list