function drupal_commons_include in Drupal Commons 6.2
Same name and namespace in other branches
- 6 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
4 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.
- _drupal_commons_drush_tasks in includes/
drush.inc - Automated run through the option forms since drush can't handle the forms
File
- ./
drupal_commons.profile, line 569
Code
function drupal_commons_include($name, $dir = 'includes') {
require_once "profiles/drupal_commons/{$dir}/{$name}.inc";
}