Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
0db76570
Commit
0db76570
authored
13 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#1266348
by kathyh, webchick: improved consistency of internal APIs
parent
4bbd8f11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/aggregator/aggregator.pages.inc
+6
-6
6 additions, 6 deletions
modules/aggregator/aggregator.pages.inc
with
6 additions
and
6 deletions
modules/aggregator/aggregator.pages.inc
+
6
−
6
View file @
0db76570
...
...
@@ -14,7 +14,7 @@
function
aggregator_page_last
()
{
drupal_add_feed
(
'aggregator/rss'
,
variable_get
(
'site_name'
,
'Drupal'
)
.
' '
.
t
(
'aggregator'
));
$items
=
aggregator_feed_items
_load
(
'sum'
);
$items
=
aggregator_
load_
feed_items
(
'sum'
);
return
_aggregator_page_list
(
$items
,
arg
(
1
));
}
...
...
@@ -33,8 +33,8 @@ function aggregator_page_source($feed) {
$feed_source
=
theme
(
'aggregator_feed_source'
,
array
(
'feed'
=>
$feed
));
// It is safe to include the fid in the query because it's loaded from the
// database by aggregator_feed_load.
$items
=
aggregator_feed_items
_load
(
'source'
,
$feed
);
// database by aggregator_feed_load
()
.
$items
=
aggregator_
load_
feed_items
(
'source'
,
$feed
);
return
_aggregator_page_list
(
$items
,
arg
(
3
),
$feed_source
);
}
...
...
@@ -67,8 +67,8 @@ function aggregator_page_category($category) {
drupal_add_feed
(
'aggregator/rss/'
.
$category
[
'cid'
],
variable_get
(
'site_name'
,
'Drupal'
)
.
' '
.
t
(
'aggregator - @title'
,
array
(
'@title'
=>
$category
[
'title'
])));
// It is safe to include the cid in the query because it's loaded from the
// database by aggregator_category_load.
$items
=
aggregator_feed_items
_load
(
'category'
,
$category
);
// database by aggregator_category_load
()
.
$items
=
aggregator_
load_
feed_items
(
'category'
,
$category
);
return
_aggregator_page_list
(
$items
,
arg
(
3
));
}
...
...
@@ -98,7 +98,7 @@ function aggregator_page_category_form($form, $form_state, $category) {
* @return
* An array of the feed items.
*/
function
aggregator_feed_items
_load
(
$type
,
$data
=
NULL
)
{
function
aggregator_
load_
feed_items
(
$type
,
$data
=
NULL
)
{
$items
=
array
();
$range_limit
=
20
;
switch
(
$type
)
{
...
...
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