diff options
author | Andrew Dolgov <[email protected]> | 2015-08-11 23:28:41 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-08-11 23:28:42 +0300 |
commit | b87744534a5250e9f839997f8eceb5b86b8c0e5c (patch) | |
tree | a0d106ac1cff35f1b65e0c2bd0b00bd511155780 /include/functions.php | |
parent | ad9928a5cb50bfd9cddce5e68efcc843a9a30288 (diff) |
add plugin-based filter actions (see example plugin in attic)
bump schema
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php index d90855ea6..6d183abaa 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,6 +1,6 @@ <?php define('EXPECTED_CONFIG_VERSION', 26); - define('SCHEMA_VERSION', 128); + define('SCHEMA_VERSION', 129); define('LABEL_BASE_INDEX', -1024); define('PLUGIN_FEED_BASE_INDEX', -128); @@ -580,8 +580,10 @@ } } - function print_select($id, $default, $values, $attributes = "") { - print "<select name=\"$id\" id=\"$id\" $attributes>"; + function print_select($id, $default, $values, $attributes = "", $name = "") { + if (!$name) $name = $id; + + print "<select name=\"$name\" id=\"$id\" $attributes>"; foreach ($values as $v) { if ($v == $default) $sel = "selected=\"1\""; @@ -595,8 +597,10 @@ print "</select>"; } - function print_select_hash($id, $default, $values, $attributes = "") { - print "<select name=\"$id\" id='$id' $attributes>"; + function print_select_hash($id, $default, $values, $attributes = "", $name = "") { + if (!$name) $name = $id; + + print "<select name=\"$name\" id='$id' $attributes>"; foreach (array_keys($values) as $v) { if ($v == $default) $sel = 'selected="selected"'; |