]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - plugins/default_colors/default_colors.php
Fix default_colors plugin: update CSS file on color change
[github/shaarli/Shaarli.git] / plugins / default_colors / default_colors.php
index 574a0bd4df3170decd74967988d8d1c8fb8bb2cb..d3e1fa761a86501127bad13a985c42c6f45540ae 100644 (file)
@@ -46,6 +46,20 @@ function default_colors_init($conf)
     }
 }
 
+/**
+ * When plugin parameters are saved, we regenerate the custom CSS file with provided settings.
+ *
+ * @param array         $data $_POST array
+ *
+ * @return array Updated $_POST array
+ */
+function hook_default_colors_save_plugin_parameters($data)
+{
+    default_colors_generate_css_file($data);
+
+    return $data;
+}
+
 /**
  * When linklist is displayed, include default_colors CSS file.
  *