Hi
I am in the process of writing a cafepress module for DR7 and the first part is under review. I now want to extend this module and get the viewing under control. I would like to view the information in the same way as you view a node like www.example.com/cafepress/1. The entity "CPI_PRODUCTS" is working okay and i have a database full of the correct information. I have a cpi_products_load and save function. I also have the permissions setting correct. But there must be something wrong in the code. The code block is large so i will copy in what i think is importation if you want to have the complet code let me know.
****the error I get is page does not exist. *****(added later)
<?php
/**
* Implements hook_permission().
*/
function cafepress_import_permission() {
return array(
'administer cafepress' => array(
'title' => t('Administer Cafepress'),
),
'view cafepress' => array(
'title' => t('View Cafepress'),
),
);
}
/**
* Implements hook_entity_info().
*/
function cafepress_import_entity_info() {
$return['cpi_storesection'] = array(
'label' => t('Store Sections'),
'controller class' => 'EntityAPIController',
'base table' => 'cpi_storesection',
'entity keys' => array(
'id' => 'aid',
),
);
$return['cpi_products'] = array(