Skip to content
Snippets Groups Projects
Commit 3b7f126a authored by Chris Yu's avatar Chris Yu
Browse files

Issue #1529656 by cYu: Using proper form arrays to render instead of forcing...

Issue #1529656 by cYu: Using proper form arrays to render instead of forcing render in the page callback
parent 48e0d898
Branches master
Tags 7.x-3.0
No related merge requests found
......@@ -126,12 +126,9 @@ function filter_perms_menu_alter(&$callbacks) {
* Page callback which appends a filter form to the standard user_admin_permissions form.
*/
function filter_perms_admin_perm() {
/*
* Not recommended to drupal_render as opposed to returning the form array,
* but I was unsure how else to return 2 forms here.
*/
$output = drupal_render(drupal_get_form('filter_perms_admin_perm_filter'));
$output .= drupal_render(drupal_get_form('user_admin_permissions'));
$output = array();
$output['filter_perms_admin_perm_filter'] = drupal_get_form('filter_perms_admin_perm_filter');
$output['user_admin_permissions'] = drupal_get_form('user_admin_permissions');
return $output;
}
......
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