You are here

function readmorecontrol_instance_settings in Read More Control 7

Helper function to determine the instance readmore_behaviour setting.

1 call to readmorecontrol_instance_settings()
readmorecontrol_field_requires_processing in ./readmorecontrol.module
A helper function to help determine if a field should be tested.

File

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

Code

function readmorecontrol_instance_settings($instance) {

  // Check the field settings to see if this field is to be ignored.
  if (isset($instance['readmore_behaviour'])) {
    if ($instance['readmore_behaviour'] != 'default') {
      return $instance['readmore_behaviour'];
    }
  }
  return FALSE;
}