aboutsummaryrefslogblamecommitdiffstats
path: root/mod/notes.php
blob: ce3460aa483c1851fcf82f8a7c53f58b46d405a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
	
}