You are here

function homebox_add_link in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_add_link()
  2. 7.3 homebox.module \homebox_add_link()
  3. 7.2 homebox.module \homebox_add_link()

Construct a link to add a block to a user dashboard.

Parameters

$text: Link text.

$page: Homebox page argument.

$module: Module of the block to add.

$delta: $delta of the block to add.

$options: $options as you would pass to l(). May include query arguments for block-specific config.

Return value

An HTML link.

1 call to homebox_add_link()
homebox_build in ./homebox.module
Responsible for firing the hook_theme()

File

./homebox.module, line 416
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_add_link($text, $page, $module, $delta, $options = array()) {
  $options['query']['token'] = homebox_get_token($page);
  return l($text, 'homebox/js/' . $page->name . '/add/' . $module . '/' . $delta, $options);
}