You are here

function drupal_commons_include in Drupal Commons 6

Same name and namespace in other branches
  1. 6.2 drupal_commons.profile \drupal_commons_include()

Helper function to load include files

Parameters

$name: The file name without the .inc extension

$dir: The directory containing the include file

3 calls to drupal_commons_include()
drupal_commons_config_wysiwyg in ./drupal_commons.profile
Configure wysiwyg
drupal_commons_create_group in ./drupal_commons.profile
Create an initial group with a discussion
drupal_commons_profile_tasks in ./drupal_commons.profile
Perform any final installation tasks for this profile.

File

./drupal_commons.profile, line 558

Code

function drupal_commons_include($name, $dir = 'includes') {
  require_once "profiles/drupal_commons/{$dir}/{$name}.inc";
}