streams/mod/notes.php

17 lines
381 B
PHP
Raw Normal View History

2013-12-09 23:27:46 +00:00
<?php /** @file */
function notes_init(&$a) {
if(! local_user())
return;
logger('mod_notes: ' . print_r($_REQUEST,true));
$ret = array('success' => true);
2013-12-11 10:25:20 +00:00
if($_REQUEST['note_text'] || $_REQUEST['note_text'] == '') {
2013-12-09 23:27:46 +00:00
$body = escape_tags($_REQUEST['note_text']);
set_pconfig(local_user(),'notes','text',$body);
}
logger('notes saved.');
json_return_and_die($ret);
2013-12-11 10:25:20 +00:00
}