You are here

function ModuleBuilderGeneratorInfo5::code_body in Module Builder 6.2

Return the main body of the file code.

Overrides ModuleBuilderGeneratorInfo::code_body

File

includes/generate.inc, line 189
Module builder code generating code.

Class

ModuleBuilderGeneratorInfo5
Generator class for module info file for Drupal 5.

Code

function code_body() {
  $module_data = $this->module_data;
  $info .= 'name = ' . $module_data['module_readable_name'] . "\n";
  $info .= 'description = ' . $module_data['module_short_description'] . "\n";
  if (!empty($module_data['module_dependencies'])) {
    $info .= 'dependencies = ' . $module_data['module_dependencies'] . "\n";
  }
  if (!empty($module_data['module_package'])) {
    $info .= 'package = ' . $module_data['module_package'] . "\n";
  }
  return $info;
}