summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc26
1 files changed, 12 insertions, 14 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc b/kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc
index 4008369..2a969d5 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/linkchecker/linkchecker.drush.inc
@@ -55,8 +55,8 @@ function drush_linkchecker_analyze() {
}
/**
-* Callback for command linkchecker-analyze.
-*/
+ * Callback for command linkchecker-analyze.
+ */
function drush_linkchecker_clear() {
global $base_url;
if ($base_url == 'http://default') {
@@ -82,17 +82,15 @@ function drush_linkchecker_clear() {
}
/**
-* Callback for command linkchecker-check.
-*/
+ * Callback for command linkchecker-check.
+ */
function drush_linkchecker_check() {
- //global $conf;
-
- //$linkchecker_check_links_max = (int) drush_get_option('links', 1000);
- drush_log('Starting link checking...', 'status');
-
- // Conditional override the default module setting.
- //$conf['linkchecker_check_links_max'] = $linkchecker_check_links_max;
-
- linkchecker_cron();
- drush_log('Finished checking links.', 'status');
+ drush_log('Starting link checking...', 'info');
+ $run = _linkchecker_check_links();
+ if (!$run) {
+ drush_log('Attempted to re-run link checks while they are already running.', 'warning');
+ }
+ else {
+ drush_log('Finished checking links.', 'completed');
+ }
}