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

user_profile.tpl.php and ldap_integration

Hello everybody,
I am trying to customize the user profile template by cleaning up some of the fields.

All our users' data is populated via the ldap_integration module, and I'm trying to condense values such as Address, City, Zip, State, etc. into a single field instead of having a page of separate fields.

Current profile display is:

checking for file in 'files' directory

I'm developing a module and I'm looking for the simplest way to check to see if a particular file exists within Drupal's 'files' directory. This is probably a no-brainer for many of you out there.

how do I suppress odbc messages in drupal?

I am trying to suppress ODBC error messages in my drupal module. I have change my php.ini settings to not display errors and just log them but I keep getting my errors printed in a themed fation on my module. How can I suppress this errors?

TANX!

Set default menu item

I working on module which extend user.module for three new user types (standart user, contributor and bookseller).

I want override or redirect user (or admin) which call standard path user/register (or admin/user/create) to my new default path - from user/register to user/register/1 (or for admin from admin/user/create to admin/user/create/1).

I experimenting with hook_menu() but i have no luck. How can i do this? Thank you very much for advice.

My actual hook_user:

/**
 * Implementation of hook_user().
 */
function enigma_profily_user($op, &$edit, &$account, $category = NULL) {
  global $user;

  switch ($op)
  {
    case 'register':
      return enigma_profily_form_type($edit, $user, $category);
      break;
    case 'form':
      return enigma_profily_form_type($edit, $user, $category);
      break;
    case 'categories':
      return enigma_profily_categories($account);
      break;
  }
}

and function enigma_profily_form_type() which extend default forms with my fields

<?php
/**
* hook_user callback; create aditional form fields for register user, admin user create
*/
function enigma_profily_form_type($edit, $user, $category) {
// path user/register/[profile_type]
if (arg(0) == 'user' && arg(1) == 'register' && is_numeric(arg(2))) {
$profile_type = arg(2);
}
// path admin/user/create/[profile_type]
else if (arg(0) == 'admin' && arg(1) == 'user' && arg(2) == 'create' && is_numeric(arg(3))) {

Asset Manager

My department is sponsoring my time to develop an Asset Manager plugin for Drupal this summer. I plan to integrate issue tracking and license management, possibly using existing modules for some functionality.

I've seen interest in the forums for such a system. Is anyone interested in working with me to develop it?

ereg_replace

Hi there.
I am trying to build a filter-module that enables you to collapse any part of your content.
Now my problem ist the following:
I want to replace all occurrence of my collapse tag with a corresponding div tag so it can be found by my javascript script.
my tags looks like this:
[collapsible] [/collapsible]
[collapsible onmouseover] [/collapsible]
[collapsible collapsed] [/collapsible]
[collapsible title="test"] [/collapsible]
or any combination of this. Like:
[collapsible onmouseover title="test"] [/collapsible]

Pages

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