/[drupal]/contributions/modules/gdata/gdata.module
ViewVC logotype

Diff of /contributions/modules/gdata/gdata.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.19, Sun Sep 3 17:35:07 2006 UTC revision 1.20, Mon Sep 4 14:46:20 2006 UTC
# Line 109  function gdata_menu($may_cache) { Line 109  function gdata_menu($may_cache) {
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
# Line 118  function gdata_menu($may_cache) { Line 119  function gdata_menu($may_cache) {
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() {
# Line 275  function _gdata_error($error = '500', $s Line 276  function _gdata_error($error = '500', $s
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      }      }
# Line 343  function gdata_admin() { Line 344  function gdata_admin() {
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 = '') {

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.2