You are here

function Notifications_Subscription_Table::set_conditions in Notifications 7

Set conditions and remove fields if in the header

File

./notifications.list.inc, line 459
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription_Table
Loadable collection of subscriptions for tablesel ect

Code

function set_conditions($conditions = array()) {
  $this->conditions = $conditions;
  foreach (array_keys($conditions) as $id) {
    if (isset($this->header[$id])) {
      unset($this->header[$id]);
    }
  }
  return $this;
}