You are here

function gathercontent_import_pages_submit in GatherContent 7

Form submit handler.

File

./gathercontent.module, line 292
Imports pages from GatherContent (http://gathercontent.com/) into Drupal as nodes.

Code

function gathercontent_import_pages_submit($form, &$form_state) {
  $content_type = $form_state['object']['gathercontent_content_type'];

  // Get rid of unchecked rows.
  $page_ids = array_filter($form_state['values']['pages_list']);
  GatherContentPages::createNodes($page_ids, $content_type);
}