| 1 | <?php namespace Anomaly\UsersModule; |
||
| 13 | class UsersModule extends Module |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The module icon. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $icon = 'users'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The module sections. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $sections = [ |
||
| 29 | 'users' => [ |
||
| 30 | 'buttons' => [ |
||
| 31 | 'new_user', |
||
| 32 | ], |
||
| 33 | ], |
||
| 34 | 'roles' => [ |
||
| 35 | 'buttons' => [ |
||
| 36 | 'new_role', |
||
| 37 | ], |
||
| 38 | ], |
||
| 39 | 'fields' => [ |
||
| 40 | 'buttons' => [ |
||
| 41 | 'add_field' => [ |
||
| 42 | 'data-toggle' => 'modal', |
||
| 43 | 'data-target' => '#modal', |
||
| 44 | 'href' => 'admin/users/fields/choose', |
||
| 45 | ], |
||
| 46 | ], |
||
| 47 | ], |
||
| 48 | ]; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Fire after the addon registers. |
||
| 52 | */ |
||
| 53 | public function onRegistered() |
||
| 59 | |||
| 60 | } |
||
| 61 |