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

Accessing fully expanded menu tree in 6.x

From what I have seen, it is possible to access the entire menu tree in 5.x as menu_get_menu() returns the children in $menu['visible'][$pid]['children'].

View using for block

Hello everybody. I need your help. I'm newby in using views module. I created view type and what code i have to insert in block wich i created to using this view type. When i click export link drupal give me next code


$view = new stdClass();
$view->name = 'Newsblock1';
$view->description = 'Создание новостей';
$view->access = array (
0 => '1',
1 => '2',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Блок новостей';
$view->page_header = '';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '3';
$view->page_type = 'table';
$view->url = 'newsblock';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array (
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Заголовок новости',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node',
'field' => 'body',
'label' => 'Текст новости',
'handler' => 'views_handler_field_body',
),
array (
'tablename' => 'node',
'field' => 'created',

nodeaccess + cck_field_perms = disaster

I tried to install on my drupal website nodeaccess, in order to block access to certain kind of contents. However, since nodeaccess is very good at managing with all non-cck content types but it doesn't block access to specific cck fields, I uninstalled nodeaccess and installed then cck_filed_perms.
The final result of this was the impossibility to manage correctly users' access: I mean, the admin/user/access way of giving permissions to users didn't work at all.

having a member approve a node before it's published?

Hey I have a question regarding a node type module I'm working on.

This is a lead generation form ... i.e. someone posts a "lead" on behalf of another user of the website. Two things:

1. After the user posts this lead node, how can I notify the other user in order to have them either approve or decline this post (which would then be deleted if it is declined by the other website member).

2. After the other member approves, I would like this node to be both set as published and e-mailed to an address supplied when the user posts the node.

Linkpoint API for Drupal 5.x almost ready - testers needed...

Hi Guys,

I have been working on the Linkpoint API module for the ecommerce package. I am about done with it, unfortunately my version of ecommerce is not working on my local server so I am not able to test the module. If anyone has ecommerce for drupal 5.x working and want to test this please let me know - you don't need a linkpoint account to test it...

$Name$ is not good in Pro Drupal Development?

When I came to chapter 2 of the book "Pro Drupal Development" they ask me to make the file 'annotate.info'.

Okay I do that, and then i must add this content:

; $Id$
name = Annotate
description = Allows users to annotate nodes.
package = Example
version = "$Name$"

The module is show up in the list at Administer -> Site Building -> Modules, but $Name$ is showing litteral!

Pages

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