Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function runQuery()
 {
     $this->teaserLength = $this->variableGet('teaser_length', 600);
     $this->nodePreview = $this->variableGet('node_preview', 0);
     $this->themeSettings = $this->variableGet('theme_settings', array());
     return parent::runQuery();
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 protected function runQuery()
 {
     $conf_path = isset($this->configuration['conf_path']) ? $this->configuration['conf_path'] : 'sites/default';
     $this->filePath = $this->variableGet('file_directory_path', $conf_path . '/files') . '/';
     // FILE_DOWNLOADS_PUBLIC == 1 and FILE_DOWNLOADS_PRIVATE == 2.
     $this->isPublic = $this->variableGet('file_downloads', 1) == 1;
     return parent::runQuery();
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 protected function runQuery()
 {
     $filter_roles = $this->select('filter_formats', 'f')->fields('f', array('format', 'roles'))->execute()->fetchAllKeyed();
     foreach ($filter_roles as $format => $roles) {
         // Drupal 6 code: $roles = ','. implode(',', $roles) .',';
         // Remove the beginning and ending comma.
         foreach (explode(',', trim($roles, ',')) as $rid) {
             $this->filterPermissions[$rid][] = $format;
         }
     }
     return parent::runQuery();
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 protected function runQuery()
 {
     $this->defaultTheme = $this->variableGet('theme_default', 'Garland');
     $this->adminTheme = $this->variableGet('admin_theme', null);
     return parent::runQuery();
 }
 /**
  * {@inheritdoc}
  */
 public function runQuery()
 {
     $conf_path = isset($this->configuration['conf_path']) ? $this->configuration['conf_path'] : 'sites/default';
     $this->filePath = $this->variableGet('file_directory_path', $conf_path . '/files') . '/';
     return parent::runQuery();
 }