You are here

function pathauto_bulk_update_batch_start in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.admin.inc \pathauto_bulk_update_batch_start()

Batch callback; count the current number of URL aliases for comparison later.

1 string reference to 'pathauto_bulk_update_batch_start'
pathauto_bulk_update_form_submit in ./pathauto.admin.inc
Form submit handler for path alias bulk update form.

File

./pathauto.admin.inc, line 318
Admin page callbacks for the Pathauto module.

Code

function pathauto_bulk_update_batch_start(&$context) {
  $context['results']['count_before'] = db_select('url_alias')
    ->countQuery()
    ->execute()
    ->fetchField();
}