function _linkchecker_batch_import_block_custom in Link checker 7
Batch: Scan blocks for links.
3 calls to _linkchecker_batch_import_block_custom()
- linkchecker_admin_settings_form_submit in ./
linkchecker.admin.inc - Implements hook_admin_settings_form_submit().
- linkchecker_analyze_links_submit in ./
linkchecker.admin.inc - Submit callback.
- linkchecker_clear_analyze_links_submit in ./
linkchecker.admin.inc - Submit callback.
File
- ./
linkchecker.batch.inc, line 119 - Batch API callbacks for the linkchecker module.
Code
function _linkchecker_batch_import_block_custom() {
// Get all {block_custom}.bid's as block module suxxx and has no usable hooks.
$result = db_query('SELECT bid FROM {block_custom} ORDER BY bid');
$operations = array();
foreach ($result as $row) {
$operations[] = array(
'_linkchecker_batch_import_block_custom_op',
array(
$row->bid,
),
);
}
$batch = array(
'file' => drupal_get_path('module', 'linkchecker') . '/linkchecker.batch.inc',
'finished' => '_linkchecker_batch_block_custom_import_finished',
'operations' => $operations,
'title' => t('Scanning for links'),
);
return $batch;
}