initial import
commit
97d398100e
@ -0,0 +1,5 @@
|
||||
~$
|
||||
\.DS_Store$
|
||||
sftp-config\.json$
|
||||
\.sublime-workspace$
|
||||
\.sublime-project$
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
function fulcrm_shoppingcart_admin_form_submit( $form, &$form_state ) {
|
||||
}
|
||||
|
||||
function fulcrm_shoppingcart_admin_form( $form, &$form_state ) {
|
||||
global $is_https;
|
||||
|
||||
$form[ 'title' ] = array( '#type' => 'item',
|
||||
'#title' => 'fulcrm Shopping Cart Settings',
|
||||
'#description' => '',
|
||||
);
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
function fulcrm_shoppingcart_admin() {
|
||||
return drupal_get_form( 'fulcrm_shoppingcart_admin_form' );
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
name = fulcrm collection
|
||||
description = fulcrm collection
|
||||
core = 7.x
|
||||
package = fulcrm
|
||||
configure = admin/config/services/fulcrm/collection
|
||||
dependencies[] = fulcrm_apiv2
|
@ -0,0 +1 @@
|
||||
<?php /* -*- php -*- */
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue