diff --git a/uptime_widget_test/uptime_widget_test.install b/uptime_widget_test/uptime_widget_test.install index ad38081..64ec882 100644 --- a/uptime_widget_test/uptime_widget_test.install +++ b/uptime_widget_test/uptime_widget_test.install @@ -18,7 +18,7 @@ function uptime_widget_test_install() { $node->status = 1; $node->promote = 1; $node->title = $t('Demo site'); - $node->body['und'][0]['value'] = $t('

This is the demo site for both the UpTime Widget and PageRank Widget module.

NOTE: Once you enter the PageRank settings, cron is run and the actual host of the current page is loaded. This results in a Pagerank of N/A on simplytest.me and might result in a Google error in a local dev environment.

The activation link of the demo is: http://simplytest.me/project/uptime_widget/7.x-1.x?add[]=pagerank_widget&patch[]=https://drupal.org/files/enable_test_and_run_cron-2045301-4.patch.

'); + $node->body['und'][0]['value'] = $t('

This is the demo site for both the UpTime Widget and PageRank Widget module.

NOTE: Once you enter the PageRank settings page, cron will run and the actual host of the current site is loaded. This might result in a Pagerank of N/A or a Google error on a development site.

Features

Customizable

Advantage over embedding third party scripts is the possibility to change the color of the widget to fit your theme. A CSS file is provided.

Lightweight

An external script makes a request on each page load. The modules once every 24 hours.'); $node->body['und'][0]['format'] = 'full_html'; node_save($node); @@ -71,12 +71,8 @@ node_save($node); variable_set('pr_widget_url', 'simplytest.me'); } - // New uptime ratio needs to be grabbed. - drupal_cron_run(); - - // Modify the URL to be used for the PageRank to have some valid ratio. if(module_exists('pr_widget')) { - // Defaults to a daily interval. + // New uptime ratio needs to be grabbed. $interval = variable_get('pr_widget_interval', 24*60*60); $url = 'http://simplytest.me/'; if (pr_widget_pagerank($url)==-1) { @@ -95,8 +91,7 @@ node_save($node); */ function uptime_widget_test_uninstall() { // Remove the sample node. - // Wrong if node id 1 already existed. Developers may uncomment for testing. - // $node id , which you want to delete. + // Wrong if nid 1 already exists. Developers may want to uncomment for tests. // $nid='1'; // node_delete($nid);