Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
better_formats
Commits
ba9a25ba
Commit
ba9a25ba
authored
Feb 05, 2010
by
dragonwize
Browse files
Fixed #672766 by fearlsgroove: Apply default to CCK multiple fields on AHAH.
parent
e2901718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
better_formats.module
better_formats.module
+1
-1
No files found.
better_formats.module
View file @
ba9a25ba
...
...
@@ -310,7 +310,7 @@ function better_formats_text_process($element, $edit, $form_state, $form) {
$default
=
better_formats_get_default_format
(
'node'
,
$form
[
'type'
][
'#value'
]);
// Overwrite format default if new node.
if
(
!
isset
(
$form_state
[
'values'
][
'nid'
])
||
!
isset
(
$format
))
{
if
(
!
isset
(
$form_state
[
'values'
][
'nid'
])
||
empty
(
$format
))
{
$format
=
$default
;
}
$format
=
filter_resolve_format
(
$format
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment