You are here

function fb_instant_articles_display_module_config_publishing in Facebook Instant Articles 7.2

Same name and namespace in other branches
  1. 7 modules/fb_instant_articles_api/includes/admin.inc \fb_instant_articles_display_module_config_publishing()

Generates Publishing Settings sub-section of Module Configuration section

1 call to fb_instant_articles_display_module_config_publishing()
fb_instant_articles_api_settings in modules/fb_instant_articles_api/includes/admin.inc
Form constructor for Facebook Instant Articles API settings form.

File

modules/fb_instant_articles_api/includes/admin.inc, line 293
Settings for Facebook Instant Articles API module.

Code

function fb_instant_articles_display_module_config_publishing($form) {
  $form['fb_instant_articles_api']['module_config']['publishing'] = array(
    '#type' => 'container',
    '#attributes' => array(
      'class' => array(
        'publishing',
      ),
    ),
  );
  $form['fb_instant_articles_api']['module_config']['publishing']['publishing_header'] = array(
    '#markup' => '
      <div>
        <h4>' . t('Publishing Settings') . '</h4>
      </div>
      ',
  );
  $form['fb_instant_articles_api']['module_config']['publishing']['fb_instant_articles_api_development_mode'] = array(
    '#type' => 'checkbox',
    '#title' => t('Development Mode'),
    '#default_value' => variable_get('fb_instant_articles_api_development_mode', FALSE),
    '#description' => '<div>' . t('When publishing in development, none of your articles will be made live, and they will be saved as drafts you can edit in the Instant Articles library on your Facebook Page. Whether in development mode or not, articles will not be published live until you have submitted a sample batch to Facebook and passed a one-time review.') . '</div>',
  );
  $form['fb_instant_articles_api']['module_config']['publishing']['publishing_footer'] = array(
    '#markup' => '
      <div style="height:20px">
        <hr>
      </div>
    ',
  );
  return $form;
}