class ModuleBuilderGeneratorInfo6 in Module Builder 6.2
Generator class for module info file for Drupal 6.
Hierarchy
- class \ModuleBuilderGenerator
- class \ModuleBuilderGeneratorInfo
- class \ModuleBuilderGeneratorInfo6
- class \ModuleBuilderGeneratorInfo
Expanded class hierarchy of ModuleBuilderGeneratorInfo6
File
- includes/
generate.inc, line 210 - Module builder code generating code.
View source
class ModuleBuilderGeneratorInfo6 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'])) {
foreach (explode(' ', $module_data['module_dependencies']) as $dep) {
$info .= 'dependencies[] = ' . $dep . "\n";
}
}
if (!empty($module_data['module_package'])) {
$info .= 'package = ' . $module_data['module_package'] . "\n";
}
$info .= "core = 6.x\n";
return $info;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ModuleBuilderGenerator:: |
function | The main code building function. | ||
ModuleBuilderGenerator:: |
function | Return a file footer. | 1 | |
ModuleBuilderGenerator:: |
function | 1 | ||
ModuleBuilderGeneratorInfo6:: |
function |
Return the main body of the file code. Overrides ModuleBuilderGeneratorInfo:: |
||
ModuleBuilderGeneratorInfo:: |
function |
Override as info files have no header. Overrides ModuleBuilderGenerator:: |
||
ModuleBuilderGeneratorInfo:: |
function |
Override as info files have no header. Overrides ModuleBuilderGenerator:: |