$configuration = new media_mover_configuration; $configuration->disabled = FALSE; /* Edit this to true to make a default configuration disabled initially */ $configuration->api_version = 1; $configuration->cid = 'gg_pdf2image'; $configuration->name = 'pdf2image'; $configuration->description = ''; $configuration->status = 'enabled'; $configuration->settings = array(); $configuration->weight = 0; $configuration->steps = array(); // ---------------------------------- // Step 0 Select: from a CCK field $step = new media_mover_step; $step->disabled = FALSE; /* Edit this to true to make a default step disabled initially */ $step->api_version = 1; $step->sid = 'select__from_a_cck_field_1'; $step->name = 'Select: from a CCK field'; $step->module = 'mm_node'; $step->action_id = 'mm_node_content_field_select'; $step->settings = array( 'harvest_field' => array( 'article--field_article_pdf' => 'article--field_article_pdf', ), 'file_types' => 'pdf PDF', 'delete' => 0, ); $configuration->steps[0] = $step; // ---------------------------------- // Step 1 Custom: Use custom command. $step = new media_mover_step; $step->disabled = FALSE; /* Edit this to true to make a default step disabled initially */ $step->api_version = 1; $step->sid = 'custom__use_custom_command_2'; $step->name = 'Custom: Use custom command.'; $step->module = 'mm_custom_command'; $step->action_id = 'custom_command'; $step->settings = array( 'output_file' => '[source_filepath]', 'command' => 'pdf2image "[source_filepath]" -JSON -compress', ); $configuration->steps[1] = $step; // ---------------------------------- // Step 2 Custom: Use custom PHP code. $step = new media_mover_step; $step->disabled = FALSE; /* Edit this to true to make a default step disabled initially */ $step->api_version = 1; $step->sid = 'custom__use_custom_php_code_'; $step->name = 'Custom: Use custom PHP code.'; $step->module = 'mm_custom_command'; $step->action_id = 'custom_php_command'; $step->settings = array( 'output_file' => '', 'php' => 'watchdog(\'flexpaper\', \'test\');', ); $configuration->steps[2] = $step;