You are here

function rules_action_data_list_remove in Rules 7.2

Action: Remove a list item.

Related topics

1 string reference to 'rules_action_data_list_remove'
rules_data_action_info in modules/data.rules.inc
Implements hook_rules_action_info() on behalf of the pseudo data module.

File

modules/data.eval.inc, line 159
Contains rules integration for the data module needed during evaluation.

Code

function rules_action_data_list_remove($list, $item) {
  foreach (array_keys($list, $item) as $key) {
    unset($list[$key]);
  }
  return array(
    'list' => $list,
  );
}