You are here

public function PurgeQueueRunner::validate in Purge 7.2

Validates all depedencies.

Overrides Purge::validate

File

includes/purge.class.inc, line 469
Contains all class and interface definitions for Purge.

Class

PurgeQueueRunner
Use the Queue Runner Queue.

Code

public function validate() {
  $errors = array();
  $pass = $this
    ->check_depend();
  if (!$pass) {
    $dependables = $this
      ->depends();
    foreach ($dependable as $dependable_name => $dependable) {
      if ($dependable['pass'] == 0) {
        $errors[] = array(
          'name' => $dependable_name,
          'message' => $dependable['description'],
        );
      }
    }
  }
  return $errors;
}