This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

why is there no xml import and export of created cck content types?

why is there no xml import and export of created cck content types?

BBCode, issue trackers and comments

Why isnt bbcode formatting bar available in the Issues Tracker I wonder.

restrict view access to flexinodes

Hi

I wanted to use the Flexinode module to create unique nodes, but I also wanted to be able to restrict viewing or accessing a flexinode by role. I've found a simple way to do this in changing the flexinode_perm and flexinode_access functions:

function flexinode_perm() {
$perms = array('administer content types');
foreach (flexinode_content_types() as $ctype) {
$perms[] = 'view '. $ctype->name .' content';
$perms[] = 'create '. $ctype->name .' content';
$perms[] = 'edit own '. $ctype->name .' content';
$perms[] = 'edit any '. $ctype->name .' content';
}
return $perms;
}

function flexinode_access($op, $node) {
global $user;

if (!is_object($node)) {
$type = $node;
$node = new StdClass();
$node->type = $type;
}

if ($op == 'view') {
return user_access('view '. node_get_name($node) .' content');
}

if ($op == 'create') {
return user_access('create '. node_get_name($node) .' content');
}

if ($op == 'update') {
foreach ($node as $fieldname => $field) {
if (preg_match('!flexinode_[0-9]+_format!', $fieldname) && !filter_access($field)) {
return FALSE;
}
}
}

if ($op == 'update' || $op == 'delete') {
if (user_access('edit any '. node_get_name($node) .' content')) {
return TRUE;
}
elseif (user_access('edit own '. node_get_name($node) .' content') && ($user->uid == $node->uid)) {

Customize Ecommerce Emails

I want to customize E commerce module. Can any body help ???

Here goes the issue.

I have 4 categories for my products.

Type A
Type B
Type C
Type D

While making purchase of any product from above said categories. E commerce module is making track of all the events from purchase, payments and shipment, and appropriate emails are being sent to the customer regarding the purchase, payment and delivery of product. (all is working fine)

anonymous users and sessions

I am working on a module and have read that in 5.x anonymous users no longer have sessions. Is this the case? One of my references is drumm on http://drupal.org/node/86329.

Feeds in Content Section

running news aggregator. i'd like to have my feeds all listed in the content section. i found how i can add each feed category into the content section but it only lists the title of each feed's post. i'd like to list all of my categories in the content section but with the full blown posts like if i were to view each source (feed category). any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions