This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/mod/notes.php
2013-12-09 15:27:46 -08:00

16 lines
348 B
PHP

<?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);
}