You are here

function shortcut_patterns_export_all_set in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_components/components/shortcut.inc \shortcut_patterns_export_all_set()

File

patterns_components/components/shortcut.inc, line 64
Patterns component for shortcut.

Code

function shortcut_patterns_export_all_set($args = NULL, &$result = NULL) {
  $info = shortcut_patterns();
  $form_id = current($info['shortcut_set'][PATTERNS_MODIFY]);
  $sets = shortcut_sets();
  $result = array();
  foreach ($sets as $set_name => $value) {
    $set_object = shortcut_set_load($set_name);
    $result = array_merge($result, patterns_export_actions_from_form($form_id, $set_object, 'shortcut_set', PATTERNS_MODIFY));
    return $result;
  }
  return $result;
}