You are here

function _coder_is_drupal_core in Coder 6

Same name and namespace in other branches
  1. 5.2 coder.module \_coder_is_drupal_core()
  2. 5 coder.module \_coder_is_drupal_core()
  3. 6.2 coder.module \_coder_is_drupal_core()

Return true if $module is in Drupal core.

1 call to _coder_is_drupal_core()
_coder_settings_form in ./coder.module
Build settings form API array for coder.

File

./coder.module, line 1615
Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.

Code

function _coder_is_drupal_core($module) {
  static $core;
  if (!isset($core)) {
    $core = array(
      // Modules:
      'aggregator' => 1,
      'block' => 1,
      'blog' => 1,
      'blogapi' => 1,
      'book' => 1,
      'color' => 1,
      'comment' => 1,
      'contact' => 1,
      'dblog' => 1,
      'filter' => 1,
      'forum' => 1,
      'help' => 1,
      'locale' => 1,
      'menu' => 1,
      'node' => 1,
      'openid' => 1,
      'path' => 1,
      'php' => 1,
      'ping' => 1,
      'poll' => 1,
      'profile' => 1,
      'search' => 1,
      'statistics' => 1,
      'syslog' => 1,
      'system' => 1,
      'taxonomy' => 1,
      'throttle' => 1,
      'tracker' => 1,
      'translation' => 1,
      'trigger' => 1,
      'update' => 1,
      'upload' => 1,
      'user' => 1,
      // Themes:
      'bluemarine' => 1,
      'chameleon' => 1,
      'garland' => 1,
      'marvin' => 1,
      'minnelli' => 1,
      'pushbutton' => 1,
    );
  }
  return isset($core[$module->name]) ? 1 : 0;
}