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

UIE Server Control

Hey everyone,

I've created a new module (uieservercontrol) and would appreciate some input on how I've implemented it.
Ideally, I'd like to be able to make the list of servers grow/shrink as required (similar to the poll module) but I've no idea how to go about doing this in the admin section. I've used some poll module logic to generate the list of servers (as you may notice in the code).

Anyway, hints/suggestions/comments would be appreciated!

Daniel

New York Observer

i have a little knowledge abt drupal and i went through the newyork observer site. i want to create the same replica of the site or a similar news paper site . plz help me . how they designed the regions and blocks and cck

phpcake-framework for module-development

Hi..just a simple q! i like the phpcake framework, is it possible to use this framework to development drupal modules?
cheers toul

Image Module changing!

Hi Guys,

I am using image module with drupal 5. I have created a link, that will be shown in the Administer->site configuration as "printing Partners". This link shows the setting form, on submitting, this form doesn't return the updated values but shows the default values of the form.

I have created this link in "image_menu" function available in image.module file.
<?php
$items[] = array('title' => t('Printing Partners'),
'path' => 'admin/settings/print_partners',
'callback' => 'drupal_get_form',
'callback arguments' => array('print_partners_admin_settings'),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
'description' => t('Printing Service Settings.'),
);
/////////////////Form function and form submit functions/////////////////////////////////
function print_partners_admin_settings() {
$print_api_res = db_query("SELECT pa.*,pad.* from printing_apis pa, printing_apis_details pad where pa.api_id=pad.api_id and pa.api_id='1'");
$print_api_obj = db_fetch_object($print_api_res);

$refer_id = $print_api_obj->refer_id;
$protocol = $print_api_obj->protocol;
$pid = $print_api_obj->pid;
$psid = $print_api_obj->psid;
$puid = $print_api_obj->puid;

help needed with hook_nodeapi

this is the code for a small custom module that i have written.

function custom_nodeapi(&$node, $op) {
  if ($op == 'submit') {
      if($node->type == 'briefing') {
         $node->content['body']['#value'] .= '<!-- break -->';
      } 
}

im trying to get it to add a break (and therefore not show show a teaser) for the 'briefing' node type but for some reason it isnt working.

all help will be greatly appreciated

Embed other module in my module's pages

I am starting to develop my own module with some page, and now I am wondering wheter it is possible to embed other modules into my module. For example, I would like to embed the core block "Who's online?" (which module is this anyway?) into the upper right corner of my own module. Is this possible?
Thx, SloMo

Pages

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