Commit a541e5fb authored by Gábor Hojtsy's avatar Gábor Hojtsy

#201667 follow up by gpk: minor code comment and whitespace cleanup

parent c5aa55b3
......@@ -235,7 +235,7 @@ function node_teaser_js(&$form, &$form_state) {
}
/**
* Ensure value of "teaser_include" checkbox is consistent with other form data
* Ensure value of "teaser_include" checkbox is consistent with other form data.
*
* This handles two situations in which an unchecked checkbox is rejected:
*
......@@ -256,7 +256,7 @@ function node_teaser_include_verify(&$form, &$form_state) {
if (isset($form['#post']['body']) && isset($form_state['values']['teaser_include']) && !$form_state['values']['teaser_include']) {
// "teaser_include" checkbox is present and unchecked.
if (strpos($form_state['values']['body'], '<!--break-->') === 0) {
// Teaser is empty string
// Teaser is empty string.
$message = t('You specified that the summary should not be shown when this post is displayed in full view. This setting is ignored when the summary is empty.');
}
elseif (strpos($form_state['values']['body'], '<!--break-->') === FALSE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment