| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
function feedburner_build_overview($category) { |
function feedburner_build_overview($category) { |
| 10 |
$keys = _feedburner_get_path_segment(6); |
$keys = _feedburner_get_path_segment(5); |
| 11 |
$output = drupal_get_form('feedburner_build_filter_form', $category, $keys); |
$output = drupal_get_form('feedburner_build_filter_form', $category, $keys); |
| 12 |
|
|
| 13 |
$header = array( |
$header = array( |
| 117 |
|
|
| 118 |
|
|
| 119 |
function feedburner_burn_form() { |
function feedburner_burn_form() { |
| 120 |
$path = _feedburner_get_path_segment(5); |
$path = _feedburner_get_path_segment(4); |
| 121 |
$feedburner = db_result(db_query("SELECT feedburner FROM {feedburner} WHERE path = '%s'", $path)); |
$feedburner = db_result(db_query("SELECT feedburner FROM {feedburner} WHERE path = '%s'", $path)); |
| 122 |
|
|
| 123 |
$form['path'] = array( |
$form['path'] = array( |
| 128 |
'#size' => 45, |
'#size' => 45, |
| 129 |
'#description' => t('Specify the existing feed on your site from which to redirect.'), |
'#description' => t('Specify the existing feed on your site from which to redirect.'), |
| 130 |
'#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), |
'#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), |
| 131 |
'#autocomplete_path' => 'admin/build/feedburner/autocomplete/all', |
'#autocomplete_path' => 'js/feedburner/autocomplete/all', |
| 132 |
); |
); |
| 133 |
$form['feedburner'] = array( |
$form['feedburner'] = array( |
| 134 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 138 |
'#size' => 45, |
'#size' => 45, |
| 139 |
'#description' => t('Requests to the above feed will be requested to this FeedBurner feed. This field is case-sensitive and alphanumeric.'), |
'#description' => t('Requests to the above feed will be requested to this FeedBurner feed. This field is case-sensitive and alphanumeric.'), |
| 140 |
'#field_prefix' => _feedburner_construct_url(), |
'#field_prefix' => _feedburner_construct_url(), |
| 141 |
'#autocomplete_path' => 'admin/build/feedburner/autocomplete/feedburner', |
'#autocomplete_path' => 'js/feedburner/autocomplete/feedburner', |
| 142 |
'#element_validate' => array('_feedburner_validate_feed'), |
'#element_validate' => array('_feedburner_validate_feed'), |
| 143 |
); |
); |
| 144 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
function feedburner_unburn_form() { |
function feedburner_unburn_form() { |
| 178 |
$path = _feedburner_get_path_segment(5); |
$path = _feedburner_get_path_segment(4); |
| 179 |
$feed = db_result(db_query("SELECT feedburner FROM {feedburner} WHERE path = '%s'", $path)); |
$feed = db_result(db_query("SELECT feedburner FROM {feedburner} WHERE path = '%s'", $path)); |
| 180 |
|
|
| 181 |
if (empty($path) || $feed === FALSE) { |
if (empty($path) || $feed === FALSE) { |
| 378 |
function _feedburner_get_site_feeds(&$feeds) { |
function _feedburner_get_site_feeds(&$feeds) { |
| 379 |
$feeds[] = array('path' => 'rss.xml', 'description' => variable_get('site_name', 'Drupal') .' frontpage feed'); |
$feeds[] = array('path' => 'rss.xml', 'description' => variable_get('site_name', 'Drupal') .' frontpage feed'); |
| 380 |
$feeds[] = array('path' => 'aggregator/feed', 'description' => 'Aggregator feed', 'module' => 'aggregator'); |
$feeds[] = array('path' => 'aggregator/feed', 'description' => 'Aggregator feed', 'module' => 'aggregator'); |
| 381 |
$feeds[] = array('path' => 'blog/feed', 'description' => variable_get('site_name', 'Drupal') .' blogs'); |
$feeds[] = array('path' => 'blog/feed', 'description' => variable_get('site_name', 'Drupal') .' blogs', 'module' => 'blog'); |
| 382 |
$feeds[] = array('path' => 'crss', 'description' => variable_get('site_name', 'Drupal') .' comments', 'module' => 'commentrss'); |
$feeds[] = array('path' => 'crss', 'description' => variable_get('site_name', 'Drupal') .' comments', 'module' => 'commentrss'); |
| 383 |
$feeds[] = array('path' => 'atom/feed', 'description' => variable_get('site_name', 'Drupal') .' ATOM', 'module' => 'atom'); |
$feeds[] = array('path' => 'atom/feed', 'description' => variable_get('site_name', 'Drupal') .' ATOM', 'module' => 'atom'); |
| 384 |
} |
} |
| 836 |
* |
* |
| 837 |
* @todo REWRITE AND REVISE! |
* @todo REWRITE AND REVISE! |
| 838 |
*/ |
*/ |
| 839 |
function feedburner_admin_build_autocomplete($category) { |
function feedburner_autocomplete($category) { |
| 840 |
module_load_include('inc', 'feedburner', 'feedburner.admin'); |
module_load_include('inc', 'feedburner', 'feedburner.admin'); |
| 841 |
$key = _feedburner_get_path_segment(6); |
$key = _feedburner_get_path_segment(4); |
| 842 |
|
|
| 843 |
$options = array('match' => $key, 'limit' => 10, 'feedburner' => TRUE); |
$options = array('match' => $key, 'limit' => 10, 'feedburner' => TRUE); |
| 844 |
|
|
| 845 |
if ($category == 'feedburner') { |
if ($category == 'feedburner') { |