mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Hooks for Check***Fields() methods
This commit is contained in:
parent
d13b6a2115
commit
a0ffa136b6
|
@ -506,6 +506,12 @@ class ActionBlog extends Action {
|
|||
$this->Message_AddError($this->Lang_Get('blog_create_rating_error'),$this->Lang_Get('error'));
|
||||
$bOk=false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_blog_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
|
||||
|
|
|
@ -487,6 +487,12 @@ class ActionLink extends Action {
|
|||
} else {
|
||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||
}
|
||||
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_link_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -288,6 +288,10 @@ class ActionPage extends Action {
|
|||
$this->Message_AddError($this->Lang_Get('page_create_parent_page_error'),$this->Lang_Get('error'));
|
||||
$bOk=false;
|
||||
}
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_page_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
|
|
|
@ -497,6 +497,12 @@ class ActionQuestion extends Action {
|
|||
} else {
|
||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||
}
|
||||
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_question_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -406,7 +406,12 @@ class ActionTalk extends Action {
|
|||
} else {
|
||||
$_REQUEST['talk_users']=join(',',$aUsersNew);
|
||||
}
|
||||
//$bOk=false;
|
||||
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_talk_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
|
||||
|
|
|
@ -539,6 +539,11 @@ class ActionTopic extends Action {
|
|||
} else {
|
||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||
}
|
||||
/**
|
||||
* Выполнение хуков
|
||||
*/
|
||||
$this->Hook_Run('ckeck_topic_fields', array('bOk'=>$bOk));
|
||||
|
||||
return $bOk;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue