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

Taxonomy - adding terms - term_node table not updated?

Hi,

Im new to drupal (discovered it about 4 weeks ago & took the plunge), and am currently using v4.7rc3.

Im trying to learn the system from a developers point of view, so I can create my own custom modules, and hopefully contribute back when I have a better understanding of the system.

Project module: blank page /project/issues/user

I use Drupal 4.7 rc3 and project module from CVS. I see only blank page at /project/issues/user and some others, /project page works fine, and on page /project/issues/search search doesn't work: there is no reaction when I press button "Search". What can I do to fix this problems?

What does theme_page?

When developing a custom module I met a very strange behavior.

The code looks like this

/* some code */

$output = very_complex_function();
print theme('page', $output);

I see not what I want! (diffucult to explain. The result makes sense, but $output variable contains another result from very_complex_function() !)

After changing the code to

display discription instead of page title

HI there , i have installed the module taxonomy term,
right now i have some terms defined, and this calls up a certain theme.
each page has a term which falls on a certain theme
like this i can make sub sites in one site.
Now that i have the terms defind and make the pages, i get title of the page as page title on the site.

for instance i have the term "clean" and i make a page called "clean_main". I Get clean_main as title of the page.

i gave the page also a discription like : "Intro to the clean site."

Private Message in profile shows: "p" "p".

I just installed Privatemsg module, its seems to be working fine, but when going to view my profile or a members profile, under "Private Messages" heading, it shows "p" "p". Any ideas what p and p is?. I was lookin for a link under this heading that would say, "Send a private message to this member".

Thanks in advane.

hook_menu code not working

Why doesn't this work?

/**
 * Implementation of hook_menu()
 */
function gt_calendar_menu($may_cache) {
  global $user;

  $items = array();
  if ($may_cache) {
    $items[] = array(
			'path' => 'admin/settings/gt_calendar',
			'title' => t('calendar'),
			'callback' => 'gt_calendar_admin',
			'access' => user_access('administer calendar')
		);

    $items[] = array(
			'path' => 'gt_calendar',
			'title' => t('Calendar'),
			'callback' => 'gt_calendar_page',
			'access' => user_access('access calendar'),
			'type' => MENU_CALLBACK
		);

		/* used in block view only */
		$items[] = array(
			'path' => 'gt_calendar/add',
			'title' => t('Add an Event'),
			'callback' => 'gt_calendar_add',
			'access' => user_access('add events'),
			'type' => MENU_CALLBACK
		);

		$items[] = array(
			'path' => 'gt_calendar/edit',
			'title' => t('Edit an Event'),
			'callback' => 'gt_calendar_edit',
			'access' => user_access('edit own events'),
			'type' => MENU_CALLBACK
		);

		$items[] = array(
			'path' => 'gt_calendar/delete',
			'title' => t('Delete an Event'),
			'callback' => 'gt_calendar_delete',
			'access' => user_access('edit own events'),
			'type' => MENU_CALLBACK
		);
  } 
  else {
    theme_add_style(drupal_get_path('module', 'gt_calendar') .'/gt_calendar.css');
  }
return $items;
}

If I go to "gt_calendar", then gt_calendar_page is correctly accessed.

Pages

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