notes widget
This commit is contained in:
16
mod/notes.php
Normal file
16
mod/notes.php
Normal file
@@ -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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user