Commit abe4469c authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#151782 by agentrickard: missing form_state in aggregator form functions

parent e362dd9b
...@@ -333,7 +333,7 @@ function aggregator_block($op = 'list', $delta = 0, $edit = array()) { ...@@ -333,7 +333,7 @@ function aggregator_block($op = 'list', $delta = 0, $edit = array()) {
/** /**
* Generate a form to add/edit/delete aggregator categories. * Generate a form to add/edit/delete aggregator categories.
*/ */
function aggregator_form_category($edit = array('title' => '', 'description' => '', 'cid' => NULL)) { function aggregator_form_category(&$form_state, $edit = array('title' => '', 'description' => '', 'cid' => NULL)) {
$form['title'] = array('#type' => 'textfield', $form['title'] = array('#type' => 'textfield',
'#title' => t('Title'), '#title' => t('Title'),
'#default_value' => $edit['title'], '#default_value' => $edit['title'],
...@@ -434,7 +434,7 @@ function aggregator_save_category($edit) { ...@@ -434,7 +434,7 @@ function aggregator_save_category($edit) {
/** /**
* Generate a form to add/edit feed sources. * Generate a form to add/edit feed sources.
*/ */
function aggregator_form_feed($edit = array('refresh' => 900, 'title' => '', 'url' => '', 'fid' => NULL)) { function aggregator_form_feed(&$form_state, $edit = array('refresh' => 900, 'title' => '', 'url' => '', 'fid' => NULL)) {
$period = drupal_map_assoc(array(900, 1800, 3600, 7200, 10800, 21600, 32400, 43200, 64800, 86400, 172800, 259200, 604800, 1209600, 2419200), 'format_interval'); $period = drupal_map_assoc(array(900, 1800, 3600, 7200, 10800, 21600, 32400, 43200, 64800, 86400, 172800, 259200, 604800, 1209600, 2419200), 'format_interval');
if ($edit['refresh'] == '') { if ($edit['refresh'] == '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment