Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
ca4162c8
Commit
ca4162c8
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Convert use of theme('table').
parent
982c5c28
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
feeds.pages.inc
+1
-1
1 addition, 1 deletion
feeds.pages.inc
feeds_ui/feeds_ui.admin.inc
+3
-3
3 additions, 3 deletions
feeds_ui/feeds_ui.admin.inc
with
4 additions
and
4 deletions
feeds.pages.inc
+
1
−
1
View file @
ca4162c8
...
@@ -37,7 +37,7 @@ function feeds_page() {
...
@@ -37,7 +37,7 @@ function feeds_page() {
t
(
'Import'
),
t
(
'Import'
),
t
(
'Description'
),
t
(
'Description'
),
);
);
return
theme
(
'table'
,
$header
,
$rows
);
return
theme
(
'table'
,
array
(
'header'
=>
$header
,
'rows'
=>
$rows
)
)
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
feeds_ui/feeds_ui.admin.inc
+
3
−
3
View file @
ca4162c8
...
@@ -796,7 +796,7 @@ function theme_feeds_ui_mapping_form($form) {
...
@@ -796,7 +796,7 @@ function theme_feeds_ui_mapping_form($form) {
drupal_render
(
$form
[
'add'
]),
drupal_render
(
$form
[
'add'
]),
);
);
$output
=
'<div class="help feeds-admin-ui""'
.
drupal_render
(
$form
[
'help'
])
.
'</div>'
;
$output
=
'<div class="help feeds-admin-ui""'
.
drupal_render
(
$form
[
'help'
])
.
'</div>'
;
$output
.
=
theme
(
'table'
,
$header
,
$rows
);
$output
.
=
theme
(
'table'
,
array
(
'header'
=>
$header
,
'rows'
=>
$rows
)
)
;
// Build the help table that explains available sources.
// Build the help table that explains available sources.
$legend
=
''
;
$legend
=
''
;
...
@@ -809,7 +809,7 @@ function theme_feeds_ui_mapping_form($form) {
...
@@ -809,7 +809,7 @@ function theme_feeds_ui_mapping_form($form) {
}
}
if
(
count
(
$rows
))
{
if
(
count
(
$rows
))
{
$legend
.
=
'<h4>'
.
t
(
'Sources'
)
.
'</h4>'
;
$legend
.
=
'<h4>'
.
t
(
'Sources'
)
.
'</h4>'
;
$legend
.
=
theme
(
'table'
,
array
(
t
(
'Name'
),
t
(
'Description'
)),
$rows
);
$legend
.
=
theme
(
'table'
,
array
(
'header'
=>
array
(
t
(
'Name'
),
t
(
'Description'
)),
'rows'
=>
$rows
)
)
;
}
}
// Build the help table that explains available targets.
// Build the help table that explains available targets.
...
@@ -821,7 +821,7 @@ function theme_feeds_ui_mapping_form($form) {
...
@@ -821,7 +821,7 @@ function theme_feeds_ui_mapping_form($form) {
);
);
}
}
$legend
.
=
'<h4>'
.
t
(
'Targets'
)
.
'</h4>'
;
$legend
.
=
'<h4>'
.
t
(
'Targets'
)
.
'</h4>'
;
$legend
.
=
theme
(
'table'
,
array
(
t
(
'Name'
),
t
(
'Description'
)),
$rows
);
$legend
.
=
theme
(
'table'
,
array
(
'header'
=>
array
(
t
(
'Name'
),
t
(
'Description'
)),
'rows'
=>
$rows
)
)
;
// Stick tables into collapsible fieldset.
// Stick tables into collapsible fieldset.
$form
[
'legendset'
][
'legend'
]
=
array
(
$form
[
'legendset'
][
'legend'
]
=
array
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment