You are here

function theme_pm_form_group in Drupal PM (Project Management) 7

Provides HTML for a Project Management form group.

11 theme calls to theme_pm_form_group()
pmexpense_form in pmexpense/pmexpense.module
Implements hook_pmexpense_form().
pminvoice_form in pminvoice/pminvoice.module
Implements hook_form().
pmnote_form in pmnote/pmnote.module
Implements hook_form().
pmorganization_form in pmorganization/pmorganization.module
Implements hook_form().
pmperson_form in pmperson/pmperson.module
Implements hook_form().

... See full list

File

./pm.theme.inc, line 11
Provides theme functions for Project Management modules

Code

function theme_pm_form_group($variables) {
  $element = $variables['element'];
  drupal_add_css(drupal_get_path('module', 'pm') . '/pm.css');
  $row = array();
  foreach (element_children($element) as $key) {
    array_push($row, drupal_render($element[$key]));
  }
  $rows = array(
    array(
      'data' => $row,
      'class' => array(
        'formgroup',
      ),
      'no_striping' => TRUE,
    ),
  );
  return theme('table', array(
    'header' => array(),
    'rows' => $rows,
    'attributes' => array(
      'class' => array(
        'formgroup',
      ),
    ),
  ));
}