| 109 |
$items[] = array( |
$items[] = array( |
| 110 |
'path' => 'admin/settings/gdata', |
'path' => 'admin/settings/gdata', |
| 111 |
'title' => t('administer gdata'), |
'title' => t('administer gdata'), |
| 112 |
'callback' => 'gdata_admin', |
'callback' => 'drupal_get_form', |
| 113 |
|
'callback arguments' => 'gdata_admin', |
| 114 |
'description' => t('administer gdata.module'), |
'description' => t('administer gdata.module'), |
| 115 |
'access' => user_access('administer gdata'), |
'access' => user_access('administer gdata'), |
| 116 |
'type' => MENU_NORMAL_ITEM |
'type' => MENU_NORMAL_ITEM |
| 119 |
} |
} |
| 120 |
|
|
| 121 |
/** |
/** |
| 122 |
* Produces an gdata (atom 1.0) feed for the front page content. |
* Produces a gdata (atom 1.0) feed for the front page content. |
| 123 |
*/ |
*/ |
| 124 |
|
|
| 125 |
function gdata_feed() { |
function gdata_feed() { |
| 276 |
function gdata_admin() { |
function gdata_admin() { |
| 277 |
if (!user_access('administer gdata')) { |
if (!user_access('administer gdata')) { |
| 278 |
die(drupal_access_denied()); |
die(drupal_access_denied()); |
| 279 |
} |
} |
| 280 |
$gdata_modules = array(); |
$gdata_modules = array(); |
| 281 |
drupal_set_title('Gdata Admin Settings'); |
drupal_set_title('Gdata Admin Settings'); |
| 282 |
$options = array('read','write','update','delete','search'); |
$options = array('read','write','update','delete','search'); |
| 283 |
if ($dir = opendir('./modules/gdata')) { |
if ($dir = opendir('./modules/gdata')) { |
| 284 |
// |
// |
| 285 |
while (false !== ($file = readdir($dir))) { |
while (false !== ($file = readdir($dir))) { |
| 286 |
if (substr($file, 0, 6) == 'gdata_') { |
if (substr($file, 0, 6) == 'gdata_' && substr($file, -4) == '.inc') { |
| 287 |
include_once($file); |
include_once($file); |
| 288 |
} |
} |
| 289 |
} |
} |
| 344 |
} |
} |
| 345 |
} |
} |
| 346 |
variable_set('gdata_modules', $gdata_modules); |
variable_set('gdata_modules', $gdata_modules); |
| 347 |
return system_settings_form('gdata_admin', $form); |
return system_settings_form($form); |
| 348 |
} |
} |
| 349 |
|
|
| 350 |
function gdata_blank_feed($path = '') { |
function gdata_blank_feed($path = '') { |