function rules_action_data_list_remove

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 162

Code

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