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
72598911
Commit
72598911
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Convert form callbacks, some theme function updates.
parent
3f786115
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
feeds.pages.inc
+1
-1
1 addition, 1 deletion
feeds.pages.inc
feeds_ui/feeds_ui.admin.inc
+10
-8
10 additions, 8 deletions
feeds_ui/feeds_ui.admin.inc
includes/FeedsConfigurable.inc
+1
-1
1 addition, 1 deletion
includes/FeedsConfigurable.inc
with
12 additions
and
10 deletions
feeds.pages.inc
+
1
−
1
View file @
72598911
...
...
@@ -117,7 +117,7 @@ function feeds_import_tab_form_submit($form, &$form_state) {
* Used on both node pages and configuration pages.
* Therefore $node may be missing.
*/
function
feeds_delete_tab_form
(
&
$form_state
,
$importer_id
,
$node
=
NULL
)
{
function
feeds_delete_tab_form
(
$form
,
&
$form_state
,
$importer_id
,
$node
=
NULL
)
{
if
(
empty
(
$node
))
{
$form
[
'#redirect'
]
=
'import/'
.
$importer_id
;
}
...
...
This diff is collapsed.
Click to expand it.
feeds_ui/feeds_ui.admin.inc
+
10
−
8
View file @
72598911
...
...
@@ -49,7 +49,7 @@ function feeds_ui_mapping_help() {
/**
* Build overview of available configurations.
*/
function
feeds_ui_overview_form
(
&
$form_status
)
{
function
feeds_ui_overview_form
(
$form
,
&
$form_status
)
{
$form
=
$form
[
'enabled'
]
=
$form
[
'disabled'
]
=
array
();
$form
[
'#header'
]
=
array
(
...
...
@@ -150,7 +150,7 @@ function feeds_ui_overview_form_submit($form, &$form_state) {
* FeedsImporter object. If given, form will create a new importer as a copy
* of $from_importer.
*/
function
feeds_ui_create_form
(
&
$form_state
,
$from_importer
=
NULL
)
{
function
feeds_ui_create_form
(
$form
,
&
$form_state
,
$from_importer
=
NULL
)
{
drupal_add_js
(
drupal_get_path
(
'module'
,
'feeds_ui'
)
.
'/feeds_ui.js'
);
$form
=
array
();
$form
[
'#from_importer'
]
=
$from_importer
;
...
...
@@ -222,7 +222,7 @@ function feeds_ui_create_form_submit($form, &$form_state) {
/**
* Delete configuration form.
*/
function
feeds_ui_delete_form
(
&
$form_state
,
$importer
)
{
function
feeds_ui_delete_form
(
$form
,
&
$form_state
,
$importer
)
{
$form
[
'#redirect'
]
=
'admin/build/feeds'
;
$form
[
'#importer'
]
=
$importer
;
if
(
$importer
->
export_type
&
EXPORT_IN_CODE
)
{
...
...
@@ -255,7 +255,7 @@ function feeds_ui_delete_form_submit($form, &$form_state) {
/**
* Export a feed configuration.
*/
function
feeds_ui_export_form
(
&
$form_state
,
$importer
)
{
function
feeds_ui_export_form
(
$form
,
&
$form_state
,
$importer
)
{
$code
=
feeds_export
(
$importer
->
id
);
$form
[
'export'
]
=
array
(
...
...
@@ -413,7 +413,7 @@ function feeds_ui_edit_page($importer, $active = 'help', $plugin_key = '') {
* @return
* A Form API form definition.
*/
function
feeds_ui_plugin_form
(
&
$form_state
,
$importer
,
$type
)
{
function
feeds_ui_plugin_form
(
$form
,
&
$form_state
,
$importer
,
$type
)
{
$plugins
=
feeds_get_plugins_by_type
(
$type
);
$form
=
array
();
...
...
@@ -451,7 +451,8 @@ function feeds_ui_plugin_form_submit($form, &$form_state) {
/**
* Theme feeds_ui_plugin_form().
*/
function
theme_feeds_ui_plugin_form
(
$form
)
{
function
theme_feeds_ui_plugin_form
(
$variables
)
{
$form
=
$variables
[
'form'
];
drupal_add_js
(
drupal_get_path
(
'module'
,
'feeds_ui'
)
.
'/feeds_ui.js'
);
$output
=
''
;
...
...
@@ -481,7 +482,7 @@ function theme_feeds_ui_plugin_form($form) {
* shared form of configuration, most of the common functionality can live in
* FeedsProcessor, a flag can tell whether mapping is supported or not.
*/
function
feeds_ui_mapping_form
(
&
$form_state
,
$importer
)
{
function
feeds_ui_mapping_form
(
$form
,
&
$form_state
,
$importer
)
{
drupal_add_js
(
drupal_get_path
(
'module'
,
'feeds_ui'
)
.
'/feeds_ui.js'
);
$form
=
array
();
...
...
@@ -766,7 +767,8 @@ function theme_feeds_ui_container($variables) {
/**
* Theme function for feeds_ui_mapping_form().
*/
function
theme_feeds_ui_mapping_form
(
$form
)
{
function
theme_feeds_ui_mapping_form
(
$variables
)
{
$form
=
$variables
[
'form'
];
// Build the actual mapping table.
$header
=
array
(
...
...
This diff is collapsed.
Click to expand it.
includes/FeedsConfigurable.inc
+
1
−
1
View file @
72598911
...
...
@@ -227,7 +227,7 @@ function feeds_get_form($configurable, $form_method) {
* @param $form_method
* The $form_method that should be rendered.
*/
function
feeds_form
(
&
$form_state
,
$configurable
,
$form_method
)
{
function
feeds_form
(
$form
,
&
$form_state
,
$configurable
,
$form_method
)
{
$form
=
$configurable
->
$form_method
(
$form_state
);
$form
[
'#configurable'
]
=
$configurable
;
$form
[
'#feeds_form_method'
]
=
$form_method
;
...
...
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