function atom_reference_theme in Scald: Media Management made easy 6
Implements hook_theme(). Defines all the theme callbacks used by the formatters mentionned above, in hook_field_formatter_info, and the theme function releated to the new widget elements we're declaring below.
File
- atom_reference/
atom_reference.module, line 141 - Defines a new field type, allowing to directly reference Scald Atoms from a node.
Code
function atom_reference_theme() {
return array(
'atom_reference_formatter_default' => array(
'arguments' => array(
'element' => NULL,
),
),
'atom_reference_formatter_library' => array(
'arguments' => array(
'element' => NULL,
),
),
'atom_reference_formatter_editor' => array(
'arguments' => array(
'element' => NULL,
),
),
'atom_reference_textfield' => array(
'arguments' => array(
'element' => NULL,
),
),
);
}