You are here

fieldset_helper.theme.inc in Fieldset helper 6

Same filename and directory in other branches
  1. 6.2 fieldset_helper.theme.inc
  2. 7.2 fieldset_helper.theme.inc

Using an include file insures that if a phptemplate_fieldset() function already exists the below function won't throw a 'Fatal error: Cannot redeclare _phptemplate_fieldset()'

File

fieldset_helper.theme.inc
View source
<?php

/**
 * @file
 * Using an include file insures that if a phptemplate_fieldset() function
 * already exists the below function won't throw a
 * 'Fatal error: Cannot redeclare _phptemplate_fieldset()'
 */

/**
 * Overide theme_fieldset using phptemplate.
 */
function phptemplate_fieldset($element) {
  $element = fieldset_helper_alter_theme_fieldset($element);
  return theme_fieldset($element);
}

/**
 * Overide CCK's theme_fieldgroup_fieldset using phptemplate.
 */
function phptemplate_fieldgroup_fieldset($element) {
  $element = fieldset_helper_alter_theme_fieldset($element);
  return theme_fieldgroup_fieldset($element);
}

/**
 * Overide theme_system_modules using phptemplate.
 */
function phptemplate_system_modules($form) {
  $output = theme_system_modules($form);
  return fieldset_helper_alter_theme_system_modules($output);
}

Functions

Namesort descending Description
phptemplate_fieldgroup_fieldset Overide CCK's theme_fieldgroup_fieldset using phptemplate.
phptemplate_fieldset Overide theme_fieldset using phptemplate.
phptemplate_system_modules Overide theme_system_modules using phptemplate.