diff options
Diffstat (limited to 'mod/notes.php')
-rw-r--r-- | mod/notes.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/notes.php b/mod/notes.php new file mode 100644 index 000000000..ce3460aa4 --- /dev/null +++ b/mod/notes.php @@ -0,0 +1,16 @@ +<?php /** @file */ + +function notes_init(&$a) { + if(! local_user()) + return; + logger('mod_notes: ' . print_r($_REQUEST,true)); + + $ret = array('success' => true); + if($_REQUEST['note_text']) { + $body = escape_tags($_REQUEST['note_text']); + set_pconfig(local_user(),'notes','text',$body); + } + logger('notes saved.'); + json_return_and_die($ret); + +}
\ No newline at end of file |