You are here

function hook_language_selection_page_data_alter in Language Selection Page 7

Same name and namespace in other branches
  1. 7.2 language_selection_page.api.php \hook_language_selection_page_data_alter()

This function let you change the links generated by the module.

Parameters

$data: These data are used by the template language-selection-page-body.tpl.php It's an array of informations related to this module.

  • $data['from'] contains an array with these properties:

    • text: the URL in text of the page it's coming from
    • query: the query of this url, if any
    • url: the URL in text, already generated with url()
    • link: the HTML link, already generated with l()
  • $data['links'] contains an array of arrays for each enabled language with these properties:

    • language: the Drupal's language object
    • from: the url it's coming from
    • query: the query parameters if any
    • url: the URL in text already generated with url()
    • link: the HTML link, already generated with l()
1 invocation of hook_language_selection_page_data_alter()
language_selection_page_selection_page_data in ./language_selection_page.pages.inc

File

./language_selection_page.api.php, line 34
Hooks provided by the module Language Selection Page.

Code

function hook_language_selection_page_data_alter(&$data) {
}