You are here

function _popup_text in Popup 7

Same name and namespace in other branches
  1. 8 includes/popup.api.inc \_popup_text()
  2. 7.x includes/popup.api.inc \_popup_text()
  3. 6.x includes/popup.api.inc \_popup_text()

File

includes/popup.api.inc, line 274

Code

function _popup_text($attributes, $return = FALSE) {
  $title = $attributes['title'] ? $attributes['title'] : 'Text';
  if ($return == 'title') {
    return $title;
  }
  $body = $attributes['text'];
  if ($return == 'body') {
    return $body;
  }
  return popup_element($title, $body, $attributes);
}