How to print time of ping??
| Project: | Ping Server |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I'm sure this is simple but right now my brain has ceased to operate.
btw your module is very useful. I'm using it to notify me of when cron has run sucessfully on about 20 or so Drupal 4.6 sites that I'm having to admin. There really isn't a very usefull way to gather that very simple piece of information across many sites but its obviously simple if you only have to deal with one. I've tried to find a non-invasive and low overhead way to retrieve this information without sucess. There is some useful stuff in this link http://drupal.org/node/42498 in which the patch submitter notes
"I realized that Drupal doesn't keep track of the last cron run, which is strange, since it adds a watchdog() after every run but nothing keeps track of the time of the last run. So this patch fixes that and as a result, cleans up a few core modules to make use of this new variable."
I've added the pinging code to the ping module on one of the sites and it is working perfectly. The only problem is that is doesnt' give me the time of the ping Can you tell me how to print this on the same line as the ping notation? It would be greatly apprecaited. Thankyou either way.

#1
Change line 165 to the following :
$sites[] = format_date($entry->updated, 'custom', 'd-m-Y H:i') .':url) .'">'. check_markup($entry->name) .'' ;