These three modules that look like they could use some conversions. As far as modules go, I don't think anything else needs converting.

- search --Currently working
- tracker --Maybe, maybe not?
- aggregator --postponed?

Converted and commited:

- poll: http://drupal.org/node/162871 --part of a bigger patch
- user: http://drupal.org/node/161510
- profile: http://drupal.org/node/162134
- block: http://drupal.org/node/159936
- forum: http://drupal.org/node/158536
- comment: http://drupal.org/node/160589

Converted and still open:

- theme.inc: http://drupal.org/node/141914
- book: http://drupal.org/node/160200
- actions: http://drupal.org/node/159862

Other related patches

- maintenance tpl: http://drupal.org/node/141727 --core commiters, please take a look.
- Related to forum templates. Adds ID's to the forum templates: http://drupal.org/node/53905

I'll change this into an issue for search.module once I have a patch up.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dvessel’s picture

Title: tplify * placeholder » tplify search module
Status: Active » Needs review
FileSize
9.09 KB

Lots of changes..

Name changes:
- *search_page to *search_results
- - It wasn't actually a page. All it does is wrap the results. Form fields above it are not even part of this template.
- *search_item to *search_result
- - I think it makes more sense.

Removed '_keys' suffix for the form ID. They were already unique and it made the variable key for the .tpl longer then it needed to be.

Search forms broken up for each input. Makes it easier to replace a submit button with a graphic. This is done often.

Template suggestions provided based on type of search. "user" or "node". Class also added in the parent template based on type.

Small modification to node.module so $result['extra'] array that gets passed to template_preprocess_search_result() are all keyed. This makes it easier for themers to alter the $info_split array inside search-result.tpl.php. (search result meta information).

Removed a ruleset for search.css. ".search-form p" doesn't even exist.

For the theme functions to work, another patch must be applied due to a bug.

http://drupal.org/node/164351#comment-285126

Thanks for reviewing.

dvessel’s picture

Priority: Normal » Critical
dvessel’s picture

FileSize
9.11 KB

Small fix on template suggestion.

dvessel’s picture

FileSize
16.12 KB

Forgot the -N parameter. Here it is again with the .tpl files.

rstamm’s picture

Status: Needs review » Needs work

Quick review:

CVS Id tags broken and missing blank line after cvs id tags

dvessel’s picture

Status: Needs work » Needs review

Thanks for looking but the cvs id tags are not broke. They are new files. It'll automatically get converted once it's commited. And I believe the blank line isn't an issue since my other patches that were formed the same way got committed.

rstamm’s picture

The cvs id tag won't converted because the tag is $Id$ and not $Id.
The blank line is needed to make the files consistent.

Please take a look at http://drupal.org/node/164935. Thanks

dvessel’s picture

FileSize
15.96 KB

Okay, still a relative CVS noob.

dvessel’s picture

FileSize
15.98 KB

Rerolled for latest head.

dvessel’s picture

FileSize
15.43 KB

And another update to keep up with head.

Wim Leers’s picture

FileSize
8.89 KB

Patch works as advertised. I've tried every .tpl.php file and they all worked. I didn't test every available variable though.

I also went through the descriptions in each tpl.php file. Minor fixes:
- spelling ("existance" -> "existence", "dependant" -> "dependent")
- style (lines longer/shorter than 78 characters)

Updated patch attached.

Wim Leers’s picture

FileSize
15.73 KB

The new files weren't included, my bad. Updated patch.

dvessel’s picture

FileSize
16.64 KB

Thanks Wim Leers, here it is again after the split patch..

I'd say this is ready, please before it breaks again... :)

dvessel’s picture

FileSize
16.63 KB

arg, left a stray drupal_rebuild_theme_registry()..

dmitrig01’s picture

why did you change node.module's node_invoke_nodeapi

dvessel’s picture

It's because what I mentioned above:

Small modification to node.module so $result['extra'] array that gets passed to template_preprocess_search_result() are all keyed. This makes it easier for themers to alter the $info_split array inside search-result.tpl.php. (search result meta information).

dmitrig01’s picture

sorry

dmitrig01’s picture

Bot, please review this. I'm hoping this works

dmitrig01’s picture

FileSize
0 bytes

maybe now - trying again

Tobias Maier’s picture

Status: Needs review » Needs work

you upload is 0 bytes!
upload again, please

dmitrig01’s picture

Status: Needs work » Needs review
FileSize
16.63 KB

oops

ChrisKennedy’s picture

FileSize
9.64 KB

Needed a re-roll but seems to work according to my testing.

ChrisKennedy’s picture

FileSize
16.48 KB

Correct patch.

Crell’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
16.49 KB

The theme_search_block_form() function is vestigial and now never used, so I removed it. Everything else looks sane to me.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Alright, this looks useful. Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.