<?phpfunction mymodule_enable() { // Get the files content $filename = drupal_get_path('module','mymodule') . "/mymodule.cck"; $content = implode ('', file ($filename)); // Build form state $form_state = array( 'values' => array( 'type_name' => '<create>', 'macro' => $content, ), ); // Put it in there drupal_execute("content_copy_import_form", $form_state);}?>
Group items matching
in title, tags, annotations or url
1More
Drupal: Programmaticaly creating nodes | Unofficial, unsactioned stuff out of Byte Craft - 2 views
1 - 5 of 5
Showing 20▼ items per page