initial import
This commit is contained in:
48
fulcrm_collection.module
Normal file
48
fulcrm_collection.module
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
function fulcrm_collection_permission() {
|
||||
return array( 'administer fulcrm collection' => array( 'title' => t('Administer fulcrm collection'),
|
||||
'description' => t('Perform main installation/administration tasks for fulcrm collection.'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
function fulcrm_collection_menu() {
|
||||
/*
|
||||
$items[ 'admin/config/services/fulcrm' ] = array( 'page callback' => 'system_admin_menu_block_page',
|
||||
'file' => 'system.admin.inc',
|
||||
'file path' => drupal_get_path('module', 'system'),
|
||||
'title' => 'fulcrm',
|
||||
'description' => 'Configuration integration with fulcrm.org.',
|
||||
'position' => 'right',
|
||||
'access callback' => 'user_access',
|
||||
'access arguments' => array('access administration pages'),
|
||||
);
|
||||
*/
|
||||
$items[ 'admin/config/services/fulcrm/collection' ] = array( 'page callback' => 'fulcrm_collection_admin',
|
||||
'file' => 'fulcrm_collection.admin.inc',
|
||||
'title' => 'fulcrm Shopping Cart',
|
||||
'description' => 'Configure collection for fulcrm.org.',
|
||||
'access callback' => 'user_access',
|
||||
'access arguments' => array('administer fulcrm collection'),
|
||||
);
|
||||
|
||||
$items[ 'fulcrm/buy/%' ] = array( 'page callback' => 'fulcrm_collection_buy',
|
||||
'page arguments' => array(2),
|
||||
'type' => MENU_CALLBACK,
|
||||
'access callback' => 'user_access',
|
||||
'access arguments' => array('access content'),
|
||||
);
|
||||
$items[ 'fulcrm/cart' ] = array( 'page callback' => 'fulcrm_collection_cart',
|
||||
'type' => MENU_CALLBACK,
|
||||
'access callback' => 'user_access',
|
||||
'access arguments' => array('access content'),
|
||||
);
|
||||
$items[ 'fulcrm/checkout' ] = array( 'page callback' => 'fulcrm_collection_checkout',
|
||||
'type' => MENU_CALLBACK,
|
||||
'access callback' => 'user_access',
|
||||
'access arguments' => array('access content'),
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
Reference in New Issue
Block a user