You are here

public function HttpResponseHeadersRule::updateRoles in HTTP Response Headers 7

Updates roles.

Parameters

array $roles: An array of role with ID.

Return value

HttpResponseHeadersRule The processed object.

File

includes/http_response_headers.rule.inc, line 320
Class definitions for the HTTP response headers rule.

Class

HttpResponseHeadersRule
Defines HttpResponseHeadersRule

Code

public function updateRoles($roles = array()) {
  if (!empty($roles)) {
    $this->roles = implode(',', array_filter($roles));
  }
  return $this;
}