Ignore:
Timestamp:
Dec 7, 2009, 4:01:10 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Implement help banner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/ec_conf.inc.php

    r4421 r4437  
    5050// the DB at the same time.
    5151
     52//----------------------------------------------------------------------------
     53// The following lines allow to change the number of configuration items, the
     54// default values they can have, and also their possible other values, very
     55// quickly.
     56
     57// Gives configuration items names and default values. Only strings.
    5258$ec_conf_default = array( // PLUGIN CONFIGURATION ($ec_conf) :
    5359                          // ---------------------------------
     
    8490  'comment_display'       // the way the comment is displayed in "entries"
    8591    => '0',               // tab : 0, as tooltip ; 1, on a line under code
     92                          //
     93  'in_help_display'       // whether the help banner is displayed.
     94    => '1',               // 0: not displayed ; 1 : displayed (surprising !)
    8695);
    8796
     97// Gives possible values. In case values cannot be predicted, just provide an
     98// empty array : array() .
    8899$ec_conf_possible_values = array(
    89100  'activated'          => array('0', '1'),
     
    95106  'unknown_code'       => array('0', '1', '2'),
    96107  'unknown_code_ap_id' => array(),
    97   'comment_display'    => array('0', '1')
     108  'comment_display'    => array('0', '1'),
     109  'in_help_display'    => array('0', '1'),
    98110);
     111
     112// Once these lines have been updated, you don't need to change anything
     113// else. Everything is managed by the code ; the only effect being that
     114// existing configuration values in the DB are reset to their default
     115// values -- normally not a harmful effect.
     116//----------------------------------------------------------------------------
    99117
    100118$ec_conf_index = array_flip(array_keys($ec_conf_default));
Note: See TracChangeset for help on using the changeset viewer.