Skip to content
Snippets Groups Projects
Commit d323b783 authored by Alex Barth's avatar Alex Barth
Browse files

Clean up same command in all ends of if/else statement.

parent 7c768733
No related branches found
Tags v0.17.0
No related merge requests found
......@@ -168,11 +168,8 @@ function boxes_block($op = 'list', $delta = '', $edit = array()) {
$form_id = "boxes_box_inline_form_{$delta}";
if (isset($_POST['form_id']) && $_POST['form_id'] === $form_id) {
$form_id .= time();
$box->content = drupal_get_form($form_id, $box);
}
else {
$box->content = drupal_get_form($form_id, $box);
}
$box->content = drupal_get_form($form_id, $box);
}
$block['content'] = $box->content;
$block['subject'] = isset($box->title) ? check_plain($box->title) : NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment