function theme_link


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_link($variables)
cle7 theme_link($variables)
elmsmedia7 theme_link($variables)
icor7 theme_link($variables)
meedjum_blog7 theme_link($variables)
mooc7 theme_link($variables)

Returns HTML for a link.

All Drupal code that outputs a link should call the l() function. That function performs some initial preprocessing, and then, if necessary, calls theme('link') for rendering the anchor tag.

To optimize performance for sites that don't need custom theming of links, the l() function includes an inline copy of this function, and uses that copy if none of the enabled modules or the active theme implement any preprocess or process functions or override this theme implementation.


$variables: An associative array containing the keys 'text', 'path', and 'options'. See the l() function for information about these variables.

See also


Related topics

1 string reference to 'theme_link'
l in includes/
Formats an internal or external URL link as an HTML anchor tag.
4 theme calls to theme_link()
book_block_view in modules/book/book.module
Implements hook_block_view().
dblog_overview in modules/dblog/
Page callback: Displays a listing of database log messages.
l in includes/
Formats an internal or external URL link as an HTML anchor tag.
_zurb_foundation_render_link in sites/all/themes/local_contrib/zurb-foundation/template.php
Helper function to recursively render sub-menus.
241 string references to the theme hook from theme_link()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

adaptivetheme_html_head_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
admin_menu_links_menu in sites/all/modules/ulmus/admin_menu/
Build the administration menu as renderable menu links.
admin_menu_merge_tree in sites/all/modules/ulmus/admin_menu/
Walk through the entire menu tree and merge in expanded dynamic menu links.
admin_menu_toolbar_admin_menu_output_build in sites/all/modules/ulmus/admin_menu/admin_menu_toolbar/admin_menu_toolbar.module
Implements hook_admin_menu_output_build().
admin_menu_translate in sites/all/modules/ulmus/admin_menu/
Translate an expanded router item into a menu link suitable for rendering.

... See full list


includes/, line 1645
The theme system, which controls the output of Drupal.


function theme_link($variables) {
  return '<a href="' . check_plain(url($variables['path'], $variables['options'])) . '"' . drupal_attributes($variables['options']['attributes']) . '>' . ($variables['options']['html'] ? $variables['text'] : check_plain($variables['text'])) . '</a>';



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.