Advertisement
Guest User

socios.features.fieldgroup.inc

a guest
Jan 24th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.34 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Implementation of hook_fieldgroup_default_groups().
  5.  */
  6. function socios_fieldgroup_default_groups() {
  7.   $groups = array();
  8.  
  9.   // Exported group: group_otherinv
  10.   $groups['socios-group_otherinv'] = array(
  11.     'group_type' => 'standard',
  12.     'type_name' => 'socios',
  13.     'group_name' => 'group_otherinv',
  14.     'label' => 'Other Invoices',
  15.     'settings' => array(
  16.       'form' => array(
  17.         'style' => 'fieldset_collapsed',
  18.         'description' => '',
  19.       ),
  20.       'display' => array(
  21.         'weight' => '52',
  22.         'label' => 'above',
  23.         'teaser' => array(
  24.           'format' => 'fieldset_collapsed',
  25.           'exclude' => 0,
  26.         ),
  27.         'full' => array(
  28.           'format' => 'fieldset_collapsed',
  29.           'exclude' => 0,
  30.         ),
  31.         'description' => '',
  32.         '5' => array(
  33.           'format' => 'fieldset',
  34.           'exclude' => 0,
  35.         ),
  36.         '4' => array(
  37.           'format' => 'fieldset',
  38.           'exclude' => 0,
  39.         ),
  40.         '2' => array(
  41.           'format' => 'fieldset',
  42.           'exclude' => 0,
  43.         ),
  44.         '3' => array(
  45.           'format' => 'fieldset',
  46.           'exclude' => 0,
  47.         ),
  48.         'token' => array(
  49.           'format' => 'fieldset',
  50.           'exclude' => 0,
  51.         ),
  52.       ),
  53.     ),
  54.     'weight' => '52',
  55.     'fields' => array(
  56.       '0' => 'field_otherinv',
  57.     ),
  58.   );
  59.  
  60.   // Exported group: group_payrolls
  61.   $groups['socios-group_payrolls'] = array(
  62.     'group_type' => 'standard',
  63.     'type_name' => 'socios',
  64.     'group_name' => 'group_payrolls',
  65.     'label' => 'Payrolls',
  66.     'settings' => array(
  67.       'form' => array(
  68.         'style' => 'fieldset_collapsed',
  69.         'description' => '',
  70.       ),
  71.       'display' => array(
  72.         'weight' => '48',
  73.         'label' => 'above',
  74.         'teaser' => array(
  75.           'format' => 'fieldset_collapsed',
  76.           'exclude' => 0,
  77.         ),
  78.         'full' => array(
  79.           'format' => 'fieldset_collapsed',
  80.           'exclude' => 0,
  81.         ),
  82.         'description' => '',
  83.         '5' => array(
  84.           'format' => 'fieldset',
  85.           'exclude' => 0,
  86.         ),
  87.         '4' => array(
  88.           'format' => 'fieldset',
  89.           'exclude' => 0,
  90.         ),
  91.         '2' => array(
  92.           'format' => 'fieldset',
  93.           'exclude' => 0,
  94.         ),
  95.         '3' => array(
  96.           'format' => 'fieldset',
  97.           'exclude' => 0,
  98.         ),
  99.         'token' => array(
  100.           'format' => 'fieldset',
  101.           'exclude' => 0,
  102.         ),
  103.       ),
  104.     ),
  105.     'weight' => '48',
  106.     'fields' => array(
  107.       '0' => 'field_payrolls',
  108.     ),
  109.   );
  110.  
  111.   // Exported group: group_staffcost
  112.   $groups['socios-group_staffcost'] = array(
  113.     'group_type' => 'standard',
  114.     'type_name' => 'socios',
  115.     'group_name' => 'group_staffcost',
  116.     'label' => 'Staff Cost',
  117.     'settings' => array(
  118.       'form' => array(
  119.         'style' => 'fieldset_collapsed',
  120.         'description' => '',
  121.       ),
  122.       'display' => array(
  123.         'weight' => '44',
  124.         'label' => 'above',
  125.         'teaser' => array(
  126.           'format' => 'fieldset_collapsed',
  127.           'exclude' => 0,
  128.         ),
  129.         'full' => array(
  130.           'format' => 'fieldset_collapsed',
  131.           'exclude' => 0,
  132.         ),
  133.         'description' => '',
  134.         '5' => array(
  135.           'format' => 'fieldset',
  136.           'exclude' => 0,
  137.         ),
  138.         '4' => array(
  139.           'format' => 'fieldset',
  140.           'exclude' => 0,
  141.         ),
  142.         '2' => array(
  143.           'format' => 'fieldset',
  144.           'exclude' => 0,
  145.         ),
  146.         '3' => array(
  147.           'format' => 'fieldset',
  148.           'exclude' => 0,
  149.         ),
  150.         'token' => array(
  151.           'format' => 'fieldset',
  152.           'exclude' => 0,
  153.         ),
  154.       ),
  155.     ),
  156.     'weight' => '44',
  157.     'fields' => array(
  158.       '0' => 'field_staffcost',
  159.     ),
  160.   );
  161.  
  162.   // Exported group: group_timesheets
  163.   $groups['socios-group_timesheets'] = array(
  164.     'group_type' => 'standard',
  165.     'type_name' => 'socios',
  166.     'group_name' => 'group_timesheets',
  167.     'label' => 'Time Sheets',
  168.     'settings' => array(
  169.       'form' => array(
  170.         'style' => 'fieldset_collapsed',
  171.         'description' => '',
  172.       ),
  173.       'display' => array(
  174.         'weight' => '40',
  175.         'label' => 'above',
  176.         'teaser' => array(
  177.           'format' => 'fieldset_collapsed',
  178.           'exclude' => 0,
  179.         ),
  180.         'full' => array(
  181.           'format' => 'fieldset_collapsed',
  182.           'exclude' => 0,
  183.         ),
  184.         'description' => '',
  185.         '5' => array(
  186.           'format' => 'fieldset',
  187.           'exclude' => 0,
  188.         ),
  189.         '4' => array(
  190.           'format' => 'fieldset',
  191.           'exclude' => 0,
  192.         ),
  193.         '2' => array(
  194.           'format' => 'fieldset',
  195.           'exclude' => 0,
  196.         ),
  197.         '3' => array(
  198.           'format' => 'fieldset',
  199.           'exclude' => 0,
  200.         ),
  201.         'token' => array(
  202.           'format' => 'fieldset',
  203.           'exclude' => 0,
  204.         ),
  205.       ),
  206.     ),
  207.     'weight' => '40',
  208.     'fields' => array(
  209.       '0' => 'field_ts',
  210.     ),
  211.   );
  212.  
  213.   // Translatables
  214.   // Included for use with string extractors like potx.
  215.   t('Other Invoices');
  216.   t('Payrolls');
  217.   t('Staff Cost');
  218.   t('Time Sheets');
  219.  
  220.   return $groups;
  221. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement