Notice the left panel how is different color and different cat title then the right panel. So my questions is if there is a way I can acomplish this? I have tried looking in the block module but no luck. Maybe you guys with more experience in php can help me out. :)
function theme_submit($element) {
return theme('button', $element);
}
function theme_button($element) {
return '<input type="submit" ... />\n";
}
I'm unable to create a simple button with form-api! All buttons are automatically of type="submit".
Form.inc contains to functions for theming a button (look above):
1. theme_submit() what creates a type="submit" button. Perfect.
2. theme_button() what also create a submit button. Why?
I think theme_button() should create a type="button" button instead, right?
While doing some theme development I had readon to call into question my PHP programming skills and start debugging my pages.
On viewing my /var/log/httpd/error_log file I discovered a fair few [error] PHP Notice: ... messaged.
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Trying to get property of non-object in /Library/WebServer/Documents/drupal/modules/node.module on line 1969
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined index: from in /Library/WebServer/Documents/drupal/includes/pager.inc on line 53
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined offset: 0 in /Library/WebServer/Documents/drupal/includes/pager.inc on line 59
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined variable: output in /Library/WebServer/Documents/drupal/modules/upload.module on line 307
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined variable: links in /Library/WebServer/Documents/drupal/modules/event/event.module on line 70
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined variable: queryt in /Library/WebServer/Documents/drupal/modules/subscriptions.module on line 101
[Sun Feb 19 10:26:05 2006] [error] PHP Notice: Undefined index: 2 in /Library/WebServer/Documents/drupal/modules/filter.module on line 621
[Sun Feb 19 10:26:06 2006] [error] PHP Notice: Undefined variable: output in /Library/WebServer/Documents/drupal/modules/upload.module on line 307
By the way - where should feature requests be posted on the forums?
Drupal feature request
- separate display control of 'submitted by' and date-time infos ...
There many time when it would be appropriate to display one or the other but not both of the two datums
'submitted by'
and
date/time
of a given node.
It would also be great if the admin user interface also included a field that enabled customization of the 'submitted by' text on a node-type basis, or better yet even on a per-user / per-node type basis.
I'm new to Drupal and I want to customize the form to create Audio content (Audio Module). In fact, I want to disabled the node option (Authoring Information, Option, and User Comments) to have a clean end user form. Otherwize, is it possible to create php page content and call module's function into it?
I want to know which is the best way to do it according ti Drupal best practices.