You are here

function sheetnode_google_menu in Sheetnode 7

Same name and namespace in other branches
  1. 6 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_menu()
  2. 7.2 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_menu()

Implementation of hook_menu().

File

modules/sheetnode_google/sheetnode_google.module, line 30
Module file for the sheetnode_google module. This extends sheetnodes to enable importing of Google sheets.

Code

function sheetnode_google_menu() {
  $items = array();
  $items['node/add/googlesheet'] = array(
    'title' => 'Sheetnode import from Google Spreadsheet',
    'access arguments' => array(
      'create sheetnode',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_sheetnode_google_import_form',
    ),
    'description' => 'Create a new sheetnode with content from an existing Google Spreadsheet.',
    'file' => 'sheetnode_google.import.inc',
  );
  $items['admin/config/content/sheetnode/google'] = array(
    'title' => 'Google Spreadsheets',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_sheetnode_google_settings',
    ),
    'description' => 'Administer settings for Sheetnode Google Spreadsheets.',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}