You are here

function rules_scheduler_rulesets_without_arguments in Rules 6

Retrieves all rule sets that do not have arguments attached.

1 call to rules_scheduler_rulesets_without_arguments()
rules_scheduler_form in rules_scheduler/rules_scheduler.admin.inc
Builds the scheduling page with a form for manual scheduling and deletion of tasks.

File

rules_scheduler/rules_scheduler.admin.inc, line 98
Admin form for scheduling

Code

function rules_scheduler_rulesets_without_arguments() {
  $rule_sets = array();
  foreach (rules_get_configured_items('rule_sets') as $name => $set_info) {
    if (empty($set_info['arguments'])) {
      $rule_sets[$name] = $set_info['label'] . ' (' . $name . ')';
    }
  }
  return $rule_sets;
}