function node_patterns_get_arguments in Patterns 7
File
- patterns_components/
components/ node.inc, line 89
Code
function node_patterns_get_arguments($action, $tag, $form_id, &$loop = FALSE) {
if ($tag == 'content_type' && $action == PATTERNS_MODIFY) {
$types = (object) _node_types_build();
foreach (array_values($types->types) as $type) {
return array(
$type,
);
}
return array();
// ???
}
elseif ($tag == 'content_type_extract_all') {
$loop = TRUE;
if ($form_id == 'node_type_form') {
$types = (object) _node_types_build();
$return = array();
foreach (array_values($types->types) as $type) {
array_push($return, array(
$type,
));
}
return $return;
}
}
}