You are here

public function Notifications_Event::set_params in Notifications 7

Set parameters

File

./notifications.event.inc, line 357
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

public function set_params($params = array()) {
  $params += array(
    'uid' => $GLOBALS['user']->uid,
    'language' => $GLOBALS['language']->language,
  );
  foreach ($params as $key => $value) {
    $this->{$field} = $value;
  }
  return $this;
}