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
fe86b16a
Commit
fe86b16a
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Clean up comments, comply with
http://drupal.org/node/1354
.
parent
f957e166
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
feeds.module
+16
-15
16 additions, 15 deletions
feeds.module
with
16 additions
and
15 deletions
feeds.module
+
16
−
15
View file @
fe86b16a
...
@@ -34,6 +34,7 @@ function feeds_cron() {
...
@@ -34,6 +34,7 @@ function feeds_cron() {
/**
/**
* Implementation of hook_cron_queue_info().
* Implementation of hook_cron_queue_info().
*
* Invoked by drupal_queue module if present.
* Invoked by drupal_queue module if present.
*/
*/
function
feeds_cron_queue_info
()
{
function
feeds_cron_queue_info
()
{
...
@@ -310,7 +311,7 @@ function feeds_nodeapi(&$node, $op, $form) {
...
@@ -310,7 +311,7 @@ function feeds_nodeapi(&$node, $op, $form) {
}
}
/**
/**
*
Break out
FeedsNodeProcessor specific nodeapi operations.
*
Handles
FeedsNodeProcessor specific nodeapi operations.
*/
*/
function
_feeds_nodeapi_node_processor
(
$node
,
$op
)
{
function
_feeds_nodeapi_node_processor
(
$node
,
$op
)
{
switch
(
$op
)
{
switch
(
$op
)
{
...
@@ -439,7 +440,7 @@ function feeds_batch($method, $importer_id, $feed_nid = 0, &$context) {
...
@@ -439,7 +440,7 @@ function feeds_batch($method, $importer_id, $feed_nid = 0, &$context) {
*/
*/
/**
/**
* Load all importers.
* Load
s
all importers.
*
*
* @param $load_disabled
* @param $load_disabled
* Pass TRUE to load all importers, enabled or disabled, pass FALSE to only
* Pass TRUE to load all importers, enabled or disabled, pass FALSE to only
...
@@ -465,7 +466,7 @@ function feeds_importer_load_all($load_disabled = FALSE) {
...
@@ -465,7 +466,7 @@ function feeds_importer_load_all($load_disabled = FALSE) {
}
}
/**
/**
* Get an array of enabled importer ids.
* Get
s
an array of enabled importer ids.
*
*
* @return
* @return
* An array where the values contain ids of enabled importers.
* An array where the values contain ids of enabled importers.
...
@@ -475,7 +476,7 @@ function feeds_enabled_importers() {
...
@@ -475,7 +476,7 @@ function feeds_enabled_importers() {
}
}
/**
/**
* Get
a
an enabled importer configuration by content type.
* Get
s
an enabled importer configuration by content type.
*
*
* @param $content_type
* @param $content_type
* A node type string.
* A node type string.
...
@@ -510,7 +511,7 @@ function _feeds_importer_digest() {
...
@@ -510,7 +511,7 @@ function _feeds_importer_digest() {
}
}
/**
/**
* Reset importer caches. Call when enabling/disabling importers.
* Reset
s
importer caches. Call when enabling/disabling importers.
*/
*/
function
feeds_cache_clear
(
$rebuild_menu
=
TRUE
)
{
function
feeds_cache_clear
(
$rebuild_menu
=
TRUE
)
{
cache_clear_all
(
'_feeds_importer_digest'
,
'cache'
);
cache_clear_all
(
'_feeds_importer_digest'
,
'cache'
);
...
@@ -524,7 +525,7 @@ function feeds_cache_clear($rebuild_menu = TRUE) {
...
@@ -524,7 +525,7 @@ function feeds_cache_clear($rebuild_menu = TRUE) {
}
}
/**
/**
* Export a FeedsImporter configuration to code.
* Export
s
a FeedsImporter configuration to code.
*/
*/
function
feeds_export
(
$importer_id
,
$indent
=
''
)
{
function
feeds_export
(
$importer_id
,
$indent
=
''
)
{
ctools_include
(
'export'
);
ctools_include
(
'export'
);
...
@@ -535,7 +536,7 @@ function feeds_export($importer_id, $indent = '') {
...
@@ -535,7 +536,7 @@ function feeds_export($importer_id, $indent = '') {
}
}
/**
/**
* Log to a file like /mytmp/feeds_my_domain_org.log in temporary directory.
* Log
s
to a file like /mytmp/feeds_my_domain_org.log in temporary directory.
*/
*/
function
feeds_dbg
(
$msg
)
{
function
feeds_dbg
(
$msg
)
{
if
(
variable_get
(
'feeds_debug'
,
false
))
{
if
(
variable_get
(
'feeds_debug'
,
false
))
{
...
@@ -559,7 +560,7 @@ function feeds_dbg($msg) {
...
@@ -559,7 +560,7 @@ function feeds_dbg($msg) {
*/
*/
/**
/**
* Get an importer instance.
* Get
s
an importer instance.
*
*
* @param $id
* @param $id
* The unique id of the importer object.
* The unique id of the importer object.
...
@@ -575,7 +576,7 @@ function feeds_importer($id) {
...
@@ -575,7 +576,7 @@ function feeds_importer($id) {
}
}
/**
/**
* Get an instance of a source object.
* Get
s
an instance of a source object.
*
*
* @param $importer_id
* @param $importer_id
* A FeedsImporter id.
* A FeedsImporter id.
...
@@ -592,7 +593,7 @@ function feeds_source($importer_id, $feed_nid = 0) {
...
@@ -592,7 +593,7 @@ function feeds_source($importer_id, $feed_nid = 0) {
}
}
/**
/**
* Get a scheduler instance.
* Get
s
a scheduler instance.
*
*
* @return
* @return
* A FeedsScheduler object or an object of a class defined by the Drupal
* A FeedsScheduler object or an object of a class defined by the Drupal
...
@@ -617,7 +618,7 @@ function feeds_scheduler() {
...
@@ -617,7 +618,7 @@ function feeds_scheduler() {
*/
*/
/**
/**
* Get all available plugins. Does not list hidden plugins.
* Get
s
all available plugins. Does not list hidden plugins.
*
*
* @return
* @return
* An array where the keys are the plugin keys and the values
* An array where the keys are the plugin keys and the values
...
@@ -648,7 +649,7 @@ function feeds_plugin_compare($a, $b) {
...
@@ -648,7 +649,7 @@ function feeds_plugin_compare($a, $b) {
}
}
/**
/**
* Get all available plugins of a particular type.
* Get
s
all available plugins of a particular type.
*
*
* @param $type
* @param $type
* 'fetcher', 'parser' or 'processor'
* 'fetcher', 'parser' or 'processor'
...
@@ -666,7 +667,7 @@ function feeds_get_plugins_by_type($type) {
...
@@ -666,7 +667,7 @@ function feeds_get_plugins_by_type($type) {
}
}
/**
/**
* Get an instance of a class for a given plugin and id.
* Get
s
an instance of a class for a given plugin and id.
*
*
* @param $plugin
* @param $plugin
* A string that is the key of the plugin to load.
* A string that is the key of the plugin to load.
...
@@ -719,7 +720,7 @@ function feeds_plugin_child($plugin_key, $parent_plugin) {
...
@@ -719,7 +720,7 @@ function feeds_plugin_child($plugin_key, $parent_plugin) {
}
}
/**
/**
* Determine the type of a plugin.
* Determine
s
the type of a plugin.
*
*
* @param $plugin_key
* @param $plugin_key
* String that identifies a Feeds plugin key.
* String that identifies a Feeds plugin key.
...
@@ -771,7 +772,7 @@ function feeds_include($file, $directory = 'includes') {
...
@@ -771,7 +772,7 @@ function feeds_include($file, $directory = 'includes') {
}
}
/**
/**
* Include a library file.
* Include
s
a library file.
*
*
* @param $file
* @param $file
* The filename to load from.
* The filename to load from.
...
...
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