You are here

class ModuleBuilderGeneratorInfo5 in Module Builder 6.2

Generator class for module info file for Drupal 5.

Hierarchy

Expanded class hierarchy of ModuleBuilderGeneratorInfo5

File

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

View source
class ModuleBuilderGeneratorInfo5 extends ModuleBuilderGeneratorInfo {
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ModuleBuilderGenerator::build function The main code building function.
ModuleBuilderGenerator::code_footer function Return a file footer. 1
ModuleBuilderGenerator::__construct function 1
ModuleBuilderGeneratorInfo5::code_body function Return the main body of the file code. Overrides ModuleBuilderGeneratorInfo::code_body
ModuleBuilderGeneratorInfo::code_header function Override as info files have no header. Overrides ModuleBuilderGenerator::code_header
ModuleBuilderGeneratorInfo::file_header function Override as info files have no header. Overrides ModuleBuilderGenerator::file_header