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
b77e7743
Commit
b77e7743
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Throw exception if object is disabled.
parent
657c1e09
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
includes/FeedsConfigurable.inc
+5
-2
5 additions, 2 deletions
includes/FeedsConfigurable.inc
with
5 additions
and
2 deletions
includes/FeedsConfigurable.inc
+
5
−
2
View file @
b77e7743
...
...
@@ -77,13 +77,16 @@ abstract class FeedsConfigurable {
}
/**
* Determine whether this object is persistent. I. e. it is
defined either
* in code or in the database.
* Determine whether this object is persistent
and enabled
. I. e. it is
*
defined either
in code or in the database
and it is enabled
.
*/
public
function
existing
()
{
if
(
$this
->
export_type
==
FEEDS_EXPORT_NONE
)
{
throw
new
FeedsNotExistingException
(
t
(
'Object is not persistent.'
));
}
if
(
$this
->
disabled
)
{
throw
new
FeedsNotExistingException
(
t
(
'Object is disabled.'
));
}
return
$this
;
}
...
...
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