<?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
AJAX-ifying Drupal Node Forms | Stella's Website - 8 views
Drupal IDE | groups.Drupal.org - 0 views
How does entity cache work in Drupal 8 - 0 views
Make a link use ajax in Drupal 7 (it's easy) | ComputerMinds - 0 views
One set of developer tools for Drupal | Mastering Drupal - 0 views
« First
‹ Previous
61 - 80 of 495
Next ›
Last »
Showing 20▼ items per page