You are here

function mobile_tools_content_build_modes in Mobile Tools 6.3

Same name and namespace in other branches
  1. 6 mobile_tools.module \mobile_tools_content_build_modes()
  2. 6.2 mobile_tools.module \mobile_tools_content_build_modes()

Implementation of hook_content_build_modes

File

./mobile_tools.module, line 790
Mobile Tools provides a range of functionality assisting in creating a mobile Drupal site . this functionality contains:

Code

function mobile_tools_content_build_modes() {
  $groups = mobile_tools_device_groups();
  $modes = array();
  foreach ($groups as $group => $title) {
    $modes[$group] = array(
      'title' => $title,
      'views style' => TRUE,
    );
  }
  $build_modes = array();

  // Needs some more thought in combining groups and types. We need to detect which build mode takes the lead

  /*  $build_modes['mobile_tools_groups'] = array(
      'title' => 'Mobile Groups',
      'build modes' => $modes,
    );
  */
  $build_modes['mobile_tools_types'] = array(
    'title' => 'Mobile Device',
    'build modes' => array(
      'mobile' => array(
        'title' => 'Mobile',
        'views style' => TRUE,
      ),
    ),
  );
  return $build_modes;
}