Here is a patch for giving the watchdog table an id to make it easier to style.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stefan Nagtegaal’s picture

I don't think this is the right way todo. IMO it would be far better to wrap every page in a div with a unique id, rather than doing it this way for ever element.

Maybe we could discuss this here so we (I?) can/could prepare a patch for drupal once HEAD is open for development again..

Steef

sime’s picture

Sounds fine by me. I just wanted to put it out there while the hack was fresh in my mind. :-)

Tobias Maier’s picture

I hate it that we give everything an id
wouldnt be a class enough?

Stefan Nagtegaal’s picture

Classes should be anough if the page content will be wrapped in a div with a unique id. but why do you hate the usage of id's?

Steef

Tobias Maier’s picture

for example you create a dashboard-site and put in for example two aggregator-pages or two profile listings...
and what do you have?
an id-conflict
this is followed by my second most hated problem: hardcoded html

I think that ids should only be used if reallyreallyreally necessary (maybe javascripts need it - but i'm no js-coder so i dont really know)
and directly in themes and not in modules or in drupal core

sime’s picture

That's an interesting case you present, I hadn't thought about that possibility.

sime’s picture

.... except when would you have two watchdog tables for the one site? :-/

keith.smith’s picture

Version: x.y.z » 6.x-dev
Status: Needs review » Needs work

Needs rerolling to accommodate 6.x watchdog/dblog changes, at the very least.

sime’s picture

Title: add id to watchdog table » add id to dblog table
FileSize
665 bytes

Patch rerolled.

I again considered the request for a classed div, but I don't see this being necessary. There is only one table on this page. You'd have to write your own page to gain multiple tables and then you'd obviously add your classes there.

sime’s picture

Status: Needs work » Needs review
dmitrig01’s picture

Status: Needs review » Reviewed & tested by the community

this works and well too

webchick’s picture

Small coding style error.

meba’s picture

seems ok

Gábor Hojtsy’s picture

Comitted, thanks!

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)