function entity_background_selectors in Entity background 7
Stores and alters selectors.
Return value
array An array of selectors.
2 calls to entity_background_selectors()
- EntityBackgroundAPITest::testEntityBackgroundTestAPI in tests/
entity_background.test - Test basic APIs.
- entity_background_get_selector in ./
entity_background.module - Get CSS selector.
File
- ./
entity_background.module, line 205 - Module file entity background.
Code
function entity_background_selectors() {
$selectors = array(
'node' => '.page-node-[entity-id]',
'user' => '.page-user-[entity-id]',
'taxonomy_term' => '.page-taxonomy-term-[entity-id]',
);
// Alter $selectors array.
drupal_alter('entity_background_selectors', $selectors);
return $selectors;
}