You are here

function readmorecontrol_default_placement in Read More Control 7

Helper function to determine the best placement default value.

1 call to readmorecontrol_default_placement()
readmorecontrol_format_settings in ./readmorecontrol.module
Helper function to get any formatting settings.

File

./readmorecontrol.module, line 280
Defines options to control how the Read more link is displayed on teasers.

Code

function readmorecontrol_default_placement($entity_type, $view_mode) {
  switch ($view_mode) {
    case 'search_result':
      return 'search_snippet';
    default:
      return 'none';
  }
}