You are here

function commerce_rules_extra_get_pages in Commerce Rules Extra 7.2

Same name and namespace in other branches
  1. 7 commerce_rules_extra.rules.inc \commerce_rules_extra_get_pages()

Option list callback for commerce_rules_extra_change_pane.

Return list of checkout pages.

2 string references to 'commerce_rules_extra_get_pages'
commerce_rules_extra_change_page_action_info in includes/actions/commerce_rules_extra_change_page.inc
Helper function to return the action info to the main module.
commerce_rules_extra_change_pane_action_info in includes/actions/commerce_rules_extra_change_pane.inc
Helper function to return the action info to the main module.

File

./commerce_rules_extra.rules.inc, line 56
Rules integration for the Commerce Rules Extra Module.

Code

function commerce_rules_extra_get_pages() {
  $pages = commerce_checkout_pages();
  $return = [
    '<same>' => '<do not change>',
  ];
  foreach ($pages as $page_id => $page) {
    $return[$page_id] = $page['name'];
  }
  return $return;
}