function eb_custom_slider_install_cck_node in Featured Content Slider 7.2
Same name in this branch
- 7.2 contrib/eb_custom_slider.module \eb_custom_slider_install_cck_node()
- 7.2 contrib/custom_slider/eb_custom_slider.module \eb_custom_slider_install_cck_node()
2 calls to eb_custom_slider_install_cck_node()
- eb_custom_slider_init in contrib/
eb_custom_slider.module - eb_custom_slider_init in contrib/
custom_slider/ eb_custom_slider.module
File
- contrib/
eb_custom_slider.module, line 186 - display content in 'featured content' block using jquery.
Code
function eb_custom_slider_install_cck_node() {
module_load_include('inc', 'eb_custom_slider', 'slider_video');
$content = eb_custom_slider_cck_export();
// in modulename.ccknodedef.inc
// CCK content_copy.module may not be enabled, so make sure it is included
require_once './' . drupal_get_path('module', 'content') . '/modules/content_copy/content_copy.module';
$form_state['values']['type_name'] = 'eb_custom_slider';
$form_state['values']['macro'] = '$content = ' . var_export($content, TRUE) . ';';
// form provided by content_copy.module
drupal_execute('content_copy_import_form', $form_state);
content_clear_type_cache();
}