You are here

webform_layout.module in Webform Layout 6

Same filename and directory in other branches
  1. 7.2 webform_layout.module
  2. 7 webform_layout.module

File

webform_layout.module
View source
<?php



/**
 * Implements hook_help().
 */
function webform_layout_help($section = 'admin/help#webform_layout', $arg = NULL) {
  switch ($section) {
    case 'admin/help#webform_layout':

      // Return a line-break version of the module README.txt
      return nl2br(file_get_contents(drupal_get_path('module', 'webform_layout') . '/README.txt'));
  }
  return '';
}

/**
 * Implements hook_webform_component_info().
 */
function webform_layout_webform_component_info() {
  return array(
    'layout_box' => array(
      'label' => t('Layout Box'),
      'description' => t('Allows you to arrange fields into rows and columns.'),
      'features' => array(
        'csv' => FALSE,
        'required' => FALSE,
        'conditional' => FALSE,
        'group' => TRUE,
        'title_display' => FALSE,
      ),
      'file' => 'layout_box.inc',
    ),
  );
}