Hi,

I wanted to alter the content list table on admin/content/types
as I wanted to add one more operation to the operation list
but I could not alter it because it does not have any hook or
alter function assigned to it.
So I think there should be a way in which other module developers
should be able to alter it without touching the content.admin.inc file.

So I thought of using the drupal_alter function to allow other modules
to alter the header as well as row.

I am attaching the patch below.

CommentFileSizeAuthor
content.admin_.inc_.patch765 bytesjunedkazi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

junedkazi’s picture

Hi

so according to the above patch one can alter the headers using the following function

function module_name_content_types_list_header_alter(&$header) {
   $header[] = t('HEADER NAME');
  return $header;
 }

similar in case of row

function module_name_content_types_list_row_alter(&$row) {
  $row[] = t('testing');
  return $row;
}
junedkazi’s picture

Title: alter content types table on admin/content/types page » alter content types lsit page on admin/content/types page
junedkazi’s picture

Title: alter content types lsit page on admin/content/types page » alter content types list page on admin/content/types page
markus_petrux’s picture

Status: Needs review » Closed (duplicate)

The order of the issues does not change the result, so I'm marking this as a dup of that.

- #596428: Ability to alter content type list (committed to CCK2 and CCK3)