mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
The addons "fromgplus" and "appnet" are now having a better documentation
This commit is contained in:
parent
7a45d047c1
commit
c9fd85c456
5 changed files with 42 additions and 25 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue