function getlocations_blocks_get_attached_elements in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_blocks/getlocations_blocks.module \getlocations_blocks_get_attached_elements()
4 calls to getlocations_blocks_get_attached_elements()
- getlocations_blocks_city_form in modules/
getlocations_blocks/ getlocations_blocks.module - getlocations_blocks_country_form in modules/
getlocations_blocks/ getlocations_blocks.module - getlocations_blocks_postalcode_form in modules/
getlocations_blocks/ getlocations_blocks.module - getlocations_blocks_province_form in modules/
getlocations_blocks/ getlocations_blocks.module
File
- modules/
getlocations_blocks/ getlocations_blocks.module, line 1029 - getlocations_blocks.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_blocks_get_attached_elements() {
$form['#attached']['css'] = array(
GETLOCATIONS_BLOCKS_PATH . '/getlocations_blocks.css',
);
$form['#attached']['js'] = array(
GETLOCATIONS_BLOCKS_PATH . '/js/getlocations_blocks.js',
);
$settings = getlocations_blocks_get_settings();
$form['#attached']['js'][] = array(
'data' => array(
'getlocations_blocks' => $settings,
),
'type' => 'setting',
);
return $form;
}