function get_incorrect_version_message()
 {
     if (get_artisteer_export_version() < get_drupal_major_version()) {
         return t('This version is not compatible with Drupal 7.x. and should be replaced.');
     }
     return '';
 }
Example #2
0
function get_html_link_output($link)
{
    $output = '';
    $html = isset($link['html']) ? $link['html'] : NULL;
    $link['query'] = isset($link['query']) ? $link['query'] : NULL;
    $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;
    if (isset($link['href'])) {
        if (get_drupal_major_version() == 5) {
            $output = l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
        } else {
            $output = l($link['title'], $link['href'], array('language' => $link['language'], 'attributes' => $link['attributes'], 'query' => $link['query'], 'fragment' => $link['fragment'], 'absolute' => FALSE, 'html' => $html));
        }
    } else {
        if ($link['title']) {
            if (!$html) {
                $link['title'] = check_plain($link['title']);
            }
            $output = $link['title'];
        }
    }
    return $output;
}