public function EmailVerifyController::email_verify_checkall in Email Verify 8.2
File
- src/
Controller/ EmailVerifyController.php, line 25 - Contains \Drupal\email_verify\Controller\EmailVerifyController.
Class
- EmailVerifyController
- Default controller for the email_verify module.
Namespace
Drupal\email_verify\ControllerCode
public function email_verify_checkall() {
// Start the batch and check the email address.
$batch = array(
'title' => t('Cancelling user account'),
'operations' => array(
array(
'::checkAllBatch',
array(),
),
),
);
batch_set($batch);
// $header = ['User Id', 'Name', 'Email'];
// $rows = [];
// $results = db_select('users', 'u')
// ->fields('u', ['uid', 'name', 'mail'])
// ->execute();
// foreach ($results as $row) {
// if (email_verify_check($row->mail)) {
// // @FIXME
// // l() expects a Url object, created from a route name or external URI.
// // $link = l($row->name, 'user/' . $row->uid);
// $rows[] = [
// $row->uid,
// $link,
// $row->mail,
// ];
// }
// }
// @FIXME
// theme() has been renamed to _theme() and should NEVER be called directly.
// Calling _theme() directly can alter the expected output and potentially
// introduce security issues (see https://www.drupal.org/node/2195739). You
// should use renderable arrays instead.
//
//
// @see https://www.drupal.org/node/2195739
// return theme('table', array('header' => $header, 'rows'=> $rows));
}