details = unserialize($feed->details); if (isset($feed->details['id'])) { $feeds[$feed->details['id']] = $feed->fb_uri; } } $form['feedburner_block_email'] = array( '#type' => 'select', '#title' => t('Selected feed'), '#default_value' => variable_get('feedburner_block_email', null), '#options' => $feeds, ); break; case 2: break; } return $form; case 'save': switch ($delta) { case 1: variable_set('feedburner_block_email', intval($edit['feedburner_block_email'])); break; } break; case 'view': switch ($delta) { case 0: if (arg(0) == 'node' && is_numeric(arg(1))) { $node = node_load(arg(1)); //$feedflare = _feedburner_get_feedflare($node->nid, $node->type); //if ($feedflare != false) { $block['subject'] = t('FeedFlare'); //$block['content'] = $feedflare; //} } break; case 1: $id = variable_get('feedburner_block_email', 0); if ($id != 0) { $block['subject'] = t('Subscribe via Email'); $form = '
'; $block['content'] = $form; } break; case 2: $block['subject'] = t('Feed Stats'); $block['content'] = ''; break; } //switch return $block; } //switch }