You are here

function nd_regions in Node displays 6

Return array of available regions.

Parameters

string $build_mode The build mode. Needed for a check on RSS build mode.:

7 calls to nd_regions()
nd_cssoverrider_form in plugins/cssoverrider.inc
Implementation of nd_pluginname_form().
nd_cssoverrider_submit in plugins/cssoverrider.inc
Implementation of nd_pluginname_submit().
nd_emptyregionrender_form in plugins/emptyregionrender.inc
Implementation of nd_pluginname_form().
nd_emptyregionrender_submit in plugins/emptyregionrender.inc
Implementation of nd_pluginname_submit().
nd_field_default_form_properties in includes/nd.display.inc
Function to load default form properties for a field in a context

... See full list

File

./nd.module, line 490
Main node displays file.

Code

function nd_regions($build_mode = 'anything', $render = FALSE) {
  if ($build_mode != NODE_BUILD_RSS) {
    if ($render == FALSE) {
      return array(
        'header' => t('Header'),
        'left' => t('Left'),
        'middle' => t('Middle'),
        'right' => t('Right'),
        'footer' => t('Footer'),
        'disabled' => t('Disabled'),
      );
    }
    else {
      return array(
        'header' => t('Header'),
        'left' => t('Left'),
        'right' => t('Right'),
        'middle' => t('Middle'),
        'footer' => t('Footer'),
        'disabled' => t('Disabled'),
      );
    }
  }
  else {
    return array(
      'middle' => t('Enabled'),
      'disabled' => t('Disabled'),
    );
  }
}