'pings_test',
'title' => t('All pings'),
'callback' => '_pings_test_show_pings',
'access' => user_access('access content')//,
//'type' => MENU_NORMAL_ITEM//MENU_CALLBACK
);
$items[]=array(
'path' => 'pings_test_ping',
'title' => t('Save ping'),
'callback' => '_pings_test_get_ping',
'access' => true,
'type' => MENU_CALLBACK
);
}
return $items;
}
// Saving all pings
function _pings_test_get_ping() {
$body = htmlspecialchars(file_get_contents('php://input'));
$tmp=variable_get('pings_test', array());
$tmp[]=array(
'date' =>date('d.m.Y H:i:s'),
'body' =>$body);
variable_set('pings_test', $tmp);
print '