You are here

function rb_numbers_action_sum in Rules Bonus Pack 6

Action for 'rb_numbers_action_sum'.

File

./rb_numbers.module, line 114
Functions for extending number management with Rules.

Code

function rb_numbers_action_sum($settings) {
  $terms = explode("\n", $settings['terms']);
  $sum = array_sum($terms);
  return array(
    'sum' => $sum,
  );
}