You are here

function coder_get_ignores in Coder 6.2

Get list of lines to ignore.

1 call to coder_get_ignores()
coder_page_form in ./coder.module
Implementation of hook_form().

File

./coder.module, line 1873

Code

function coder_get_ignores() {
  $ignores = coder_parse_ignores(drupal_get_path('module', 'coder') . '/core.coder_ignores.txt');
  foreach (module_implements('coder_ignore') as $module) {
    $function = $module . '_coder_ignore';
    $default_info = array(
      'path' => '',
      'line prefix' => '',
    );
    $info = array_merge($default_info, $function());
    $ignores += coder_parse_ignores($info['path'] . '/' . $module . '.coder_ignores.txt', $info['line prefix']);
  }
  return $ignores;
}