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

RE: Administrator menu?

I seem to have goofed up.

I made the "navigation" menu viewable only on certain pages. Now I can't see it at all!

All I get is http://opirgwindsor.info/?q=admin but when I select on anything under the menu, it doesn't show up!

Basically, I can't administer anything and lost the power to do so.

How can I correct this?

OD

Navigation Menu placement

I'm in the process of updating some of our customised modules from 4.4 to 4.5 - but I can't seem to make the link appear in the users navigation menu.

I'm guessing the problem lies with the 'type' ? I'm not really sure what I'm doing at all to be honest - but any pointers would be very much appreciated.

I wish i was smarter :)

I can't access to "modules" from my administration panel : "administer/modules"

Hello,

I have just installed drupal462.

I loaded the drupal base by using Webmin. I can see 55 tables in.

I modified the file : sites/default/settings.php in order to set the database URL and the base URL.

I run Drupal and logged in.

I went to administer/access control and I have (permissions, roles account rules). Into "permissions" I have 10 blocks mentionned bellow and I checked all of them for the authentificated :

file links in attachments wrong

the links being generated in common.inc are incorrect, and i can't figure out where things are going wrong

  return '<a href="/'. check_url(url($path, $query, $fragment, $absolute)) .'"'. drupal_attributes($attributes) .'>'. ($html ? $text : check_plain($text)) .'</a>';

returns the following:

Not generating content in menu callback ... whatamIdoingwrong?

I'm playing with writing a module to house lots of data from amazon. The idea is to port over what I did with JSP's some time ago ... if you look in the XML returned from the REST service, you see there's the potential for a quite extensive set of pages. They return a list of related items, a list of related browse nodes, author names, etc, all of which can link to other pages, etc. I wrote that up in JSP but I'm moving to drupal and, so, here I am.

I finally got to the page_example.module code and am mimicing that ... but ... it's not working. I'm also cross comparing with other modules. If you visit http://7gen.com/amazonstore ... you'll see the empty page. Some HTML is returned, but there's an empty body.

I know that drupal is getting into my module ... if amazonstore_page is changed to simply call drupal_access_denied() then I get a proper "access denied" page.

Here's my module:


<?php

/**
* Implementation of hook_perm().
*/
function amazonstore_perm() {
return array('access amazon store');
}

/**
* Implementation of hook_menu().
*/
function amazonstore_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'amazonstore',
'title' => t('amazon store'),
'callback' => 'amazonstore_page',
'access' => 'access amazon store'
);
}

return $items;
}

function amazonstore_page($a = 'null', $b = 'null') {

How To Add Custom Fields To profile.module Category?

Hi, I am creating a module based in profile.module, basically I need to add some customized fields to the fields I've created with profile.module, the functions I need these new fields to support are not included in profile.module and I don't want to modify profile.module but to extend it using my own module.

I am using hook_user and I'm almost there, however I am having a problem with the category groups.

Using profile.module I've created two categories: Personal and Professional.

Using my new module I am creating my custom fields in the Professional category (it is actually using the same name of category as the one created from profile.module: "Professional") and storing the new data in a separate table.

My problem is that I'm seeing two "groups" of Professional category in my form (by "group" I'm referring to a html fieldset block with "Professional" in the legend tag), both when editing (using $op='form' in hook_user) and when registering ($op='register' in hook_user).

One group of fields contains the fields created by profile.module and the other group contains the fields created by my module, but being in the same category (at least the category name is the same) they should be grouped in the same fieldset block.

I need to join these two groups, in fact I need to be able to control where my new module fields are inserted in the form, for example:

field 1 (from profile.module)

Pages

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