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

load and view hooks

So I have been working feverishly to get my module to display custom data fields, but with no luck. My code is as follows:

Help with views: way to sort numerically on title?

Any ideas on how to accomplish this? I have a date that begins every title of a certain flexinode type-- when I list the nodes with a view, I want to list them in order of the most recent date: 2006/05/30 (for example-- the date is always in this format, so it should be fairly reliable to sort on this).

Display help

Hello - I am pretty new to the Drupal scene (2 weeks), but I felt like I was learning pretty quickly; however, I've hit a pretty big problem that I'm not sure how to approach. I created a custom module that is supposed to display a business name, its location, and a
wry comment" about it. It is as follows:

/
/**
* Implementation of hook_node_info().
*/
function biz_node_info() {
return array('biz' => array('name' => t('Suburban Business'), 'base' => 'biz'));
}

/**
* Implementation of hook_perm().
*/
function biz_perm() {
return array('create suburban business', 'edit own suburban business');
}

/**
* Implementation of hook_access().
*/
function biz_access($op, $node) {
global $user;

if ($op == 'create') {
return user_access('create suburban business');
}

if ($op == 'update' || $op == 'delete') {
if (user_access('edit own suburban business') && ($user->uid == $node->uid)) {
return TRUE;
}
}
}

/**
* Implementation of hook_menu().
*/
function biz_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'node/add/biz', 'title' => t('Suburban Business'),
'access' => user_access('create suburban business'));
}

return $items;
}

/**
* Implementation of hook_form().
*/
function biz_form(&$node) {

//$form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title, '#rows' => 1, '#required' => TRUE);

Render teasers of nodes side by side on one row

Hi,

I need render teasers of nodes side by side on one row like this:

forum decision - vb Drupal Drupal vb

Hello,

I have to implement a community site with blogs and forums. I am not sure if drupals core forum mod is the best choice (mostly because of the discussions ion it).

But maybe the built in forum is all I need - could anyone tell me the pros and cons of it?

I was also thinking of using vBulleting but as I want to use Drupal 4.7 vbDrupal doesn't seem to be an option. Besides I don't like to use a fork of drupal only because I want to have a nice forum.

Grouping modules on the module page

Hi guys,

Apologies in advance if this is a dumb question...but, would it be a stupid idea to "Group" modules together so when they appear on the ADMINISTRATION -> MODULES page, instead of seeing one long list of modules...you see them grouped..in the same way as you see the settings page with the collapse/expand option.

For example:

Pages

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