Search code examples
drupaldrupal-7drupal-themingdrupal-hooks

Anyone know how to add a field or column to the /ADMIN/CONTENT listing page? DRUPAL 7


I would like to add a field / column to the Content Administration Overview page but it appears the easiest theme override to do this has been deprecated with D7.

In D6 I could just override the method:

theme_node_admin_nodes($form)

But this method no longer exists for D7. What's the equivalent replacement or do I actually need to hook into node_admin_nodes() now and modify the form directly?


Solution

  • You'll have to hook into the form, the theme element has been completely removed node_admin_nodes() in Drupal 7.

    It's actually node_admin_content() that you'll need to hook into as node_admin_nodes() is no longer a form function, it just builds up elements that are used by node_admin_content().

    Fortunately the elements in node_admin_nodes() and node_filter_form() (the two functions used in node_admin_content() to build up the page) are nicely structured and will be very easy to override.