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

Using the 4.7 forms API to render tabular data

This can probably be done by extending the form builder functions and inserting table structure where currently we have fieldset structure.

Table layouts are not all bad.
Sometimes, when dealing with actual data, a table is the right thing.
Could phpadmin work without tables?
Anyway, my data structure needs tables. And form elements inside them.

... Read the full story. Drupal.org doesn't want to host my post :(

"Block access by role" for 4.6.x?

Ref. this post:
"Block access by role"
http://drupal.org/node/18018
http://drupal.org/node/18001

I would love to be able to search for myself after "Block access by role", so I did not have to post this, but as is it not possible to search for phrases with "..." , and I did not find any through googling either, I post here...

Is there a partch version working with 4.6.x(5) anywhere?

form rendering explained ?

Hello All,

I'm not CSS skilled enough to reverse-engineer the themeing of forms.

Could someone point me to a document explaining the choices that have been made by the authors ? Among others, I'd like to have an explanation on the difference between '.form-item' and '.form-item label'.

I need this to mimic the form when I display information (kind of R/O form).

TIA

Creating a web project manager with drupal

Hi all,

I'm thinking of using Drupal for creating a (somewhat ambitious..) web project manager, which goal would be to manage a list of different web project, implementing features usefull for a web developement environment:

- file operations : synchronization between local, test and live server, backuping config
- database operations : syncro + remote backuping config
- bug tracker (basically for now, create a new project in the bug tracker when a new project is created in the tool)
- htaccess management
- svn management
- etc..

So it's a bit like plesk, but more oriented toward developement tasks than server config. with support for server syncronization, and a possibility to add functionality in automatizing repetitive tasks (wrapped in drupal modules). While this is not typical drupal content (no stories, no forums, no comments), I would benefit, among other things, of drupal's hook system. Here's my plan, on a technical level. (please keep in mind Drupal is new to me)

- put each group of behaviour in a different module.
i.e : file operations, DB operations, bug tracker stuff, backup config stuff, and so on.
- define new hooks so that my modules can emit signals and/or collect information from other modules
i.e : suppose the htaccess management module wants to give a chance to all other module to add something in the htaccess before it is written

Form api (4.7)

Iam updating the flexiblock for 4.7 here. But I get this error:

Fatal error: Call to undefined function form_checkbox() in www.myserver.tld\cvs\modules\flexiblock.module on line 141

I've red about the form api, but i dont understand much of it to be quite honest...so all help would be most appreciated!

These are the 6 lines I need to convert:

Empty $section in hook_help

in 4.7 HEAD
My simple module, copied from page.module and somewhat modified behaves as follows:
on any menu or home url, the main drupal code seems to be running through my module's hook_help functions twice. The first time all is well, $section has appropriate contents and my embedded print statements appear before the header on screen. But then the hook_help module is called again, with "" in $section, and my embedded print statemenst also appears on screen before the header is printed. The return text shows up in the middle of the page node.

here is my hook_help:

function iquote_help($section) {
print " strt of help hook... section = $section" ;
  switch ($section) {
    case 'admin/help#iquote':
print "iquote admin help hook... section = $section" ;
      $output = t('The iquote module admin help page. ') ;
      return $output;
    case 'admin/modules#description':
print " iquote adminmodulesdeschelp hook... section = $section" ;
      return t('Enables the creation of ....');
    case 'node/add#iquote':
print " iquote nodeadd help hook... section = $section" ;
      return t('node add help text.');
default:
print " iquote no section " ;
      return t('nada babeeeeeee.');

  }
}

and hook_menu:

function iquote_menu($may_cache) {
$items = array();
//_vd("mixed var", "start iquote_menu");
print " strt of menu hook..." ;

Pages

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