You are here

function _drupalapi in Coder 7.2

Creates a link to the Drupal API docs.

Parameters

string $function: The name of a function to link to.

string $version: (optional) The Drupal version to link to.

Return value

string An HTML link to the Drupal API documents for the function and version. Except when called from Drush, then it is a plain text link.

18 calls to _drupalapi()
coder_review_47_reviews in coder_review/includes/coder_review_47.inc
Implements hook_reviews().
coder_review_5x_reviews in coder_review/includes/coder_review_5x.inc
Implements hook_reviews().
coder_review_6x_reviews in coder_review/includes/coder_review_6x.inc
Implements hook_reviews().
coder_review_7x_reviews in coder_review/includes/coder_review_7x.inc
Implements hook_reviews().
coder_review_i18n_reviews in coder_review/includes/coder_review_i18n.inc
Implements hook_reviews().

... See full list

File

coder_review/coder_review.common.inc, line 1520
Common functions used by both the drush and form interfaces.

Code

function _drupalapi($function, $version = '') {
  return _l($function, "http://api.drupal.org/api/function/{$function}/{$version}");
}