Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.41 2000/12/02 16:11:49 nilsson Exp $ + // $Id: module.pmod,v 1.42 2000/12/08 08:13:02 nilsson Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:90:    //! Return 1 if this variable should be visible in the    //! configuration interface. The default implementation check the    //! 'flags' field, and the invisibility callback, if any. See    //! get_flags, set_flags and set_invisibibility_check_callback    //!    //! If variable_in_cfif is true, the variable is in a module    //! that is added to the configuration interface itself.    {    int flags = get_flags();    function cb; +  if( flags & VAR_INVISIBLE ) return 0;    if( initial && !(flags & VAR_INITIAL) ) return 0;    if( (flags & VAR_EXPERT) && !expert_mode ) return 0;    if( (flags & VAR_MORE) && !more_mode ) return 0;    if( (flags & VAR_DEVELOPER) && !devel_mode ) return 0;    if( (flags & VAR_NOT_CFIF) && variable_in_cfif ) return 0;    if( (cb = get_invisibility_check_callback() ) &&    cb( id, this_object() ) )    return 0;    return 1;    }