]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
Merge pull request #333 from tobiasd/20160103-ptbr
[friendica-addons.git] / fromgplus / fromgplus.php
index 933567ce7c07f5a9a788fd95292d25f8747076d4..e0fdc705ffd856833013ad14ffd0cded4b6a18f8 100644 (file)
@@ -81,6 +81,21 @@ function fromgplus_addon_settings_post(&$a,&$b) {
        }
 }
 
+function fromgplus_plugin_admin(&$a, &$o){
+        $t = get_markup_template("admin.tpl", "addon/fromgplus/");
+
+        $o = replace_macros($t, array(
+                '$submit' => t('Save Settings'),
+                '$key' => array('key', t('Key'), trim(get_config('fromgplus', 'key')), t('')),
+        ));
+}
+
+function fromgplus_plugin_admin_post(&$a){
+        $key = ((x($_POST,'key')) ? trim($_POST['key']) : '');
+        set_config('fromgplus','key',$key);
+        info( t('Settings updated.'). EOL );
+}
+
 function fromgplus_cron($a,$b) {
        $last = get_config('fromgplus','last_poll');