<?php
/*
Plugin Name: Grey Hidden Records
Description: Changes the colour of records on the list page to grey if their "hidden" field is checked. Has no effect on sections without a hidden field.
Version: 1.00
Requires at least: 2.03
*/

// register callbacks
addFilter('listRow_trStyle',      'grey_hidden_records_listRow_trStyle', null, 3);


function grey_hidden_records_listRow_trStyle($trStyle, $tableName, $record) {
  if (!@$record['hidden']) { return $trStyle; } // skip if record either doesn't have a hidden field or the hidden field isn't checked
  return "color: #CCC;";
}
?>
