views:

98

answers:

1

I've been curious what is the best practice to add custom settings to the admin/content/types (drupal 6.x)

Update: Jeremy has suggested (unsurprisingly) to use hook_form_alter(). I'll try it out and report back.

A: 

That page is generated by the node_overview_types() function, it dosn't look like there is a way to hook into it. Without intercepting the output in the theme layer and messing with it (which I wouldn't advise).

If you want to add content type settings I would suggest you do a hook_form_alter() on the content type settings form. You can also use hook_node_type_form_alter() to access this form more easily. Have a look here for an example.

Jeremy French
Yeah, I did assumed I would hook_form_alter(), I'm only curious how the data storage would work. I know with cck you need to define your settings $form specifically and hooking an existing form is a pain as the cck handles its own data storage.I'll start dsm()'ing the $form from the page in question and letcha know how it goes :)
electblake

related questions