Function Hook_comcode_link_handler_media_rendering->bind

Definitions

sources/hooks/systems/comcode_link_handlers/media_rendering.php

  • Bind function for Comcode link handler hooks. They see if they can bind a pasted URL to a lump of handler Tempcode.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$url URLPATH required parameter N/A N/A Link to use or reject
$comcode_dangerous boolean required parameter N/A N/A Whether we are allowed to proceed even if this tag is marked as 'dangerous'
$pass_id string required parameter N/A N/A A special identifier to mark where the resultant Tempcode is going to end up (e.g. the ID of a post)
$pos integer required parameter N/A N/A The position this tag occurred at in the Comcode
$source_member MEMBER required parameter N/A N/A The member who is responsible for this Comcode
$as_admin boolean required parameter N/A N/A Whether to check as arbitrary admin
$db object required parameter N/A N/A The database connector to use
$comcode string required parameter N/A N/A The whole chunk of Comcode
$structure_sweep boolean required parameter N/A N/A Whether this is only a structure sweep
$semiparse_mode boolean required parameter N/A N/A Whether we are in semi-parse-mode (some tags might convert differently)
$highlight_bits array required parameter N/A N/A A list of words to highlight

Return

  • Handled link (null: reject due to inappropriate link pattern)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A