3 $function = getStringFromRequest('function');
6 case 'get_canned_response':
7 //$atid = getIntFromRequest('atid');
8 $canned_response_id = getIntFromRequest('canned_response_id');
9 echo get_canned_response($canned_response_id);
17 function get_canned_response($id) {
18 $result = db_query_params('SELECT body FROM artifact_canned_responses WHERE id=$1',
20 if (! $result || db_numrows($result) < 1) {
24 return db_result($result, 0, 'body');