@@ -125,22 +141,22 @@ public function form(array $form, array &$form_state) {
}
else{
$options=array(
BLOCK_VISIBILITY_NOTLISTED=>t('All pages except those listed'),
BLOCK_VISIBILITY_LISTED=>t('Only the listed pages'),
BLOCK_VISIBILITY_NOTLISTED=>$this->t('All pages except those listed'),
BLOCK_VISIBILITY_LISTED=>$this->t('Only the listed pages'),
);
$description=t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %user for the current user's page and %user-wildcard for every user page. %front is the front page.",array('%user'=>'user','%user-wildcard'=>'user/*','%front'=>'<front>'));
$description=$this->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %user for the current user's page and %user-wildcard for every user page. %front is the front page.",array('%user'=>'user','%user-wildcard'=>'user/*','%front'=>'<front>'));
if(module_exists('php')&&$access){
$options+=array(BLOCK_VISIBILITY_PHP=>t('Pages on which this PHP code returns <code>TRUE</code> (experts only)'));
$title=t('Pages or PHP code');
$description.=' '.t('If the PHP option is chosen, enter PHP code between %php. Note that executing incorrect PHP code can break your Drupal site.',array('%php'=>'<?php ?>'));
$options+=array(BLOCK_VISIBILITY_PHP=>$this->t('Pages on which this PHP code returns <code>TRUE</code> (experts only)'));
$title=$this->t('Pages or PHP code');
$description.=' '.$this->t('If the PHP option is chosen, enter PHP code between %php. Note that executing incorrect PHP code can break your Drupal site.',array('%php'=>'<?php ?>'));
}
else{
$title=t('Pages');
$title=$this->t('Pages');
}
$form['visibility']['path']['visibility']=array(
'#type'=>'radios',
'#title'=>t('Show block on specific pages'),
'#title'=>$this->t('Show block on specific pages'),
'#description'=>t('Show this block only for the selected language(s). If you select no languages, the block will be visibile in all languages.'),
'#description'=>$this->t('Show this block only for the selected language(s). If you select no languages, the block will be visible in all languages.'),
);
}
...
...
@@ -198,24 +215,24 @@ public function form(array $form, array &$form_state) {