Issue #3471544 by ronttizz, sonyavpaa, joachim, longwave, smustgrave: array lines in hook_theme() sample code are too long

merge-requests/9437/head
quietone 2024-09-05 14:13:50 +12:00
parent 7606575bee
commit db8a4ac51f
No known key found for this signature in database
GPG Key ID: 43BFBBB26EA09FE1
1 changed files with 19 additions and 3 deletions

View File

@ -1251,13 +1251,29 @@ function hook_page_bottom(array &$page_bottom) {
function hook_theme($existing, $type, $theme, $path) {
return [
'my_module_display' => [
'variables' => ['my_modules' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'my_module_per_page' => NULL],
'variables' => [
'my_modules' => NULL,
'topics' => NULL,
'parents' => NULL,
'tid' => NULL,
'sortby' => NULL,
'my_module_per_page' => NULL,
],
],
'my_module_list' => [
'variables' => ['my_modules' => NULL, 'parents' => NULL, 'tid' => NULL],
'variables' => [
'my_modules' => NULL,
'parents' => NULL,
'tid' => NULL,
],
],
'my_module_icon' => [
'variables' => ['new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0],
'variables' => [
'new_posts' => NULL,
'num_posts' => 0,
'comment_mode' => 0,
'sticky' => 0,
],
],
'status_report' => [
'render element' => 'requirements',