diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index fa8248dba..4d670edcc 100644 --- a/lib/util.php +++ b/lib/util.php @@ -2185,7 +2185,7 @@ function common_compatible_license($from, $to) { return ($from == $to); } -function common_block_form($profile) { +function common_block_form($profile, $args=NULL) { common_element_start('form', array('id' => 'block-' . $profile->id, 'method' => 'post', 'class' => 'block', @@ -2199,6 +2199,11 @@ function common_block_form($profile) { 'class' => 'submit', 'name' => 'block', 'value' => _('Block'))); + if ($args) { + foreach ($args as $k => $v) { + common_hidden('returnto-' . $k, $v); + } + } common_element_end('form'); return; } |