Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zdorovega’s picture

thedavidmeister’s picture

Status: Active » Needs work
+    // Set the request in the container to the new created Request above
+    // so it is available to the rest of the installation process.
+    $container
+      ->set('request', $request);

Just wondering why we need this bit?

-          '#description' => theme('user_permission_description', array('permission_item' => $perm_item, 'hide' => $hide_descriptions)),
+          '#description' => array(
+            '#theme' => 'user_permission_description',
+            '#permission_item' =>$perm_item,
+            'hide' => $hide_descriptions,

This should be #hide right?

-  $output = theme('system_compact_link');
-  $output .= theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'permissions')));
+  $output = array('#theme' => 'system_compact_link');
+    $output .= array(
+      '#theme' => 'table',
+      'header' => $header,
+      'rows' => $rows,
+      'attributes' => array('id' => 'permissions')),
+    );

and this #header, #rows, #attributes?

Zdorovega’s picture

thank you, the above issues have been fixed.

star-szr’s picture

Status: Needs work » Needs review

Sending to testbot for now. Thanks @redfoxxx.ua!

Status: Needs review » Needs work
Samvel’s picture

@redfoxxx.ua

instead this one:

+  $form['pager'] = array(
+    '#markup' => array('#theme' => 'pager'),
+  );

need:

+  $pager = array('#theme' => 'pager');
+  $form['pager'] = array(
+    '#markup' => drupal_render($pager),
+  );
InternetDevels’s picture

Assigned: Unassigned » InternetDevels

We are working today with this issue during Code Sprint UA.

InternetDevels’s picture

Assigned: InternetDevels » Unassigned
Status: Needs work » Needs review
FileSize
5.32 KB

Patch attached.

InternetDevels’s picture

Issue tags: +CodeSprintUA
podarok’s picture

Status: Needs review » Reviewed & tested by the community

#8 nice work

catch’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Novice, +CodeSprintUA
JeroenT’s picture

Status: Needs work » Needs review
FileSize
5.37 KB

Replaced theme() with drupal_render().

thedavidmeister’s picture

Status: Needs review » Needs work

+ '#theme' => 'pager',

Trailing whitespace issue here.

$form['pager'] = array('#markup' => theme('pager'));
+  $pager = array(
+    '#theme' => 'pager', 
+  );
+  $form['pager'] = array('#markup' => drupal_render($pager));

This looks weird to me.

$form['pager'] = array('#theme' => 'pager'),

Should be enough, there's no point in rendering an array into #markup to be passed back to drupal_render() a second time as drupal_render() is already recursive.

+    '#attributes' => array(
+      'id' => 'permissions'
+      ),

Closing parenthesis is indented too far here.

JeroenT’s picture

Status: Needs work » Needs review
FileSize
5.35 KB

Ok, thanks!

Made changes as suggested by thedavidmeister

JeroenT’s picture

I forgot to remove:

+  $pager = array(
+    '#theme' => 'pager',
+  );

This is the right patch.

thedavidmeister’s picture

Status: Needs review » Needs work
+    '#attributes' => array(
+      'id' => 'permissions'
+    ),

This should either be one line or have a trailing comma after 'permissions'

hussainweb’s picture

Status: Needs work » Needs review
FileSize
5.54 KB

Added the trailing comma and removed some extra whitespace.

scor’s picture

Status: Needs review » Reviewed & tested by the community

looks good. all comments have been addressed.

alexpott’s picture

Committed 9dd08c0 and pushed to 8.x. Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.